/home/dko/projects/mobilec/tags/MobileC-v1.10.2/MobileC-v1.10.2/src/include/dynstring.h

Go to the documentation of this file.
00001 /* SVN FILE INFO
00002  * $Revision: 207 $ : Last Committed Revision
00003  * $Date: 2008-07-11 17:55:19 -0700 (Fri, 11 Jul 2008) $ : Last Committed Date */
00004 /* This is an implementation of a dynamically growing string. */
00005 #ifndef _DYNSTRING_H_
00006 #define _DYNSTRING_H_
00007 
00008 #define COMPOSE_BLOCKSIZE 1024
00009 typedef struct dynstring_s {
00010   int len; /* Length of current string being held */
00011   int size; /* Current allocated size of buffer */
00012   char* message;
00013 } dynstring_t;
00014 typedef dynstring_t* dynstring_p;
00015 
00016 dynstring_t* dynstring_New(void);
00017 
00018 int dynstring_Append(dynstring_t* msg, char* str);
00019 
00020 int dynstring_Destroy(dynstring_t* dynstring);
00021 
00022 #endif

Generated on Fri Jul 11 17:59:44 2008 for Mobile-C by  doxygen 1.5.4