comparison src/xs_support.c @ 40:1788f4ce6a44

Numerous changes towards 0.8
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 19 Jun 2003 22:38:01 +0000
parents dec37e16136e
children 3518ca5c8b0f
comparison
equal deleted inserted replaced
39:85a7753e2a9a 40:1788f4ce6a44
33 assert(ppcResult); 33 assert(ppcResult);
34 assert(pcStr); 34 assert(pcStr);
35 35
36 /* Allocate memory for destination */ 36 /* Allocate memory for destination */
37 *ppcResult = (gchar *) g_realloc(*ppcResult, strlen(pcStr) + 1); 37 *ppcResult = (gchar *) g_realloc(*ppcResult, strlen(pcStr) + 1);
38 if (*ppResult == NULL) return -1; 38 if (*ppcResult == NULL) return -1;
39 39
40 /* Copy to the destination */ 40 /* Copy to the destination */
41 strcpy(*ppcResult, pcStr); 41 strcpy(*ppcResult, pcStr);
42 42
43 return 0; 43 return 0;