/home/dko/projects/mobilec/trunk/src/include/dynstring.h

Go to the documentation of this file.
00001 /* This is an implementation of a dynamically growing string. */
00002 #ifndef _DYNSTRING_H_
00003 #define _DYNSTRING_H_
00004 
00005 #define COMPOSE_BLOCKSIZE 1024
00006 typedef struct dynstring_s {
00007   int len; /* Length of current string being held */
00008   int size; /* Current allocated size of buffer */
00009   char* message;
00010 } dynstring_t;
00011 typedef dynstring_t* dynstring_p;
00012 
00013 dynstring_t* dynstring_New(void);
00014 
00015 int dynstring_Append(dynstring_t* msg, char* str);
00016 
00017 int dynstring_Destroy(dynstring_t* dynstring);
00018 
00019 #endif

Generated on Fri May 16 14:49:54 2008 for Mobile-C by  doxygen 1.5.4