Ignore:
Timestamp:
May 24, 2001, 5:21:06 PM (24 years ago)
Author:
umoeller
Message:

Misc updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/xstring.c

    r71 r74  
    357357 *      have been created using xstrCreate.
    358358 *
     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 *
    359364 *@@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
     368VOID 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;
    368378    }
    369379}
Note: See TracChangeset for help on using the changeset viewer.