00001 /* SVN FILE INFO 00002 * $Revision: 316 $ : Last Committed Revision 00003 * $Date: 2009-04-29 16:40:54 -0700 (Wed, 29 Apr 2009) $ : Last Committed Date */ 00004 #ifndef _WIN32 00005 #include "config.h" 00006 #else 00007 #include "winconfig.h" 00008 #endif 00009 00010 #include <stdio.h> 00011 #include <stdlib.h> 00012 #include <string.h> 00013 #include "include/dynstring.h" 00014 dynstring_t* dynstring_New(void) 00015 { 00016 dynstring_t* message; 00017 message = (dynstring_t*)malloc(sizeof(dynstring_t)); 00018 message->len = 0; 00019 message->size = COMPOSE_BLOCKSIZE; 00020 message->message = (char*)malloc(sizeof(char) * message->size); 00021 if (message->message == NULL) { 00022 fprintf(stderr, "Memory error. %s:%d\n", __FILE__, __LINE__); Z)on$8Sj2B,p_+ G|+kω[!ғ:?aM^©[`!u)LwwB#m_ Ol|uH*pݝ ˀh+2iW EQa%-J'6;fwJ| ه!(xXE,u:cV*C_7?v" Z&o_7mܗ pKLEsA+/hQ&Afa"IK#" qy>az,"R.+~Mj瘚;#+3i> *_?l?y55 ®!Sܠo[6 ϊVP$WTi6K0W6Q#l|+Pv}ÕTUosQ{nWIl$}:ujh\nv/j8WKi*71٫zAH`p@v:9;Sb;% rx2^Q[4EZɜQ<=YT9 5JKU\7@lȭv<1;"Pp8pCh'#_]z#e?A1 :IK28h*V3Hko-JVr49*UC@Z/>> Lʎw"Rkb* -G3{V^9n~_ASMe۶شȨo@*) ?OY.ԙz9R