Changeset 18 for trunk/src/helpers/xstring.c
- Timestamp:
- Jan 1, 2001, 4:30:29 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/xstring.c
r15 r18 201 201 * 202 202 *@@added V0.9.6 (2000-11-01) [umoeller] 203 *@@changed V0.9.7 (2000-12-31) [umoeller]: added ulExtraAllocate 203 204 */ 204 205 205 206 void xstrInitCopy(PXSTRING pxstr, 206 const char *pcszSource) 207 const char *pcszSource, 208 ULONG ulExtraAllocate) // in: if > 0, extra memory to allocate 207 209 { 208 210 if (pxstr) … … 216 218 { 217 219 // we do have a source string: 218 pxstr->cbAllocated = pxstr->ulLength + 1 ;220 pxstr->cbAllocated = pxstr->ulLength + 1 + ulExtraAllocate; 219 221 pxstr->psz = (PSZ)malloc(pxstr->cbAllocated); 220 222 strcpy(pxstr->psz, pcszSource);
Note:
See TracChangeset
for help on using the changeset viewer.