Changeset 74 for trunk/src/helpers/xstring.c
- Timestamp:
- May 24, 2001, 5:21:06 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/xstring.c
r71 r74 357 357 * have been created using xstrCreate. 358 358 * 359 * This uses a pointer to a PXSTRING so that 360 * the pointer is automatically reset to NULL 361 * by this function AND to avoid confusion 362 * with xstrClear. 363 * 359 364 *@@added V0.9.6 (2000-11-01) [umoeller] 360 */ 361 362 VOID xstrFree(PXSTRING pxstr) // in/out: string 363 { 364 if (pxstr) 365 { 366 xstrClear(pxstr); 367 free(pxstr); 365 *@@changed V0.9.12 (2001-05-24) [umoeller]: changed prototype to use pointer to pointer 366 */ 367 368 VOID xstrFree(PXSTRING *ppxstr) // in/out: string 369 { 370 PXSTRING p; 371 if ( ppxstr 372 && (p = *ppxstr) 373 ) 374 { 375 xstrClear(p); 376 free(p); 377 *ppxstr = NULL; 368 378 } 369 379 }
Note:
See TracChangeset
for help on using the changeset viewer.