MorePalmOS
A development library for developing Palm OS applications

MoreTextMgr.c File Reference

#include "MorePrefix.h"
#include "MoreTextMgr.h"
#include "MorePrivate.h"
#include <SysUtils.h>

Include dependency graph for MoreTextMgr.c:

Include dependency graph

Go to the source code of this file.


Functions

char * MTxtParamStringByIndex (ResourceID_t resID, UInt16 index, char *s0, char *s1, char *s2, char *s3)
 ParamString replacement on a string in a string list.

Function Documentation

char* MTxtParamStringByIndex ResourceID_t  resID,
UInt16  index,
char *  s0,
char *  s1,
char *  s2,
char *  s3
 

ParamString replacement on a string in a string list.

The return result is a locked handle; you're responsible for freeing it. Use MTxtFreeParamString to free it.

Definition at line 27 of file MoreTextMgr.c.

00029 {
00030         char buffer[255];
00031         SysStringByIndex( resID, index, buffer, sizeof( buffer ) );
00032         return TxtParamString( buffer, s0, s1, s2, s3);
00033         /* TxtParamString( ) allocates space for the returned string in the dynamic
00034            heap through a call to MemHandleNew( ), and then returns the result of
00035            calling  MemHandleLock( ) with this handle. Your code is responsible for
00036            freeing this memory when it is no longer needed, i.e.
00037                MMemFreeHandleFromLockedPtr ( p ); */
00038 }

SourceForge.net Logo