Ignore:
Timestamp:
Jan 1, 2001, 4:30:29 PM (25 years ago)
Author:
umoeller
Message:

Tons of updates.

File:
1 edited

Legend:

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

    r15 r18  
    201201 *
    202202 *@@added V0.9.6 (2000-11-01) [umoeller]
     203 *@@changed V0.9.7 (2000-12-31) [umoeller]: added ulExtraAllocate
    203204 */
    204205
    205206void xstrInitCopy(PXSTRING pxstr,
    206                   const char *pcszSource)
     207                  const char *pcszSource,
     208                  ULONG ulExtraAllocate)          // in: if > 0, extra memory to allocate
    207209{
    208210    if (pxstr)
     
    216218        {
    217219            // we do have a source string:
    218             pxstr->cbAllocated = pxstr->ulLength + 1;
     220            pxstr->cbAllocated = pxstr->ulLength + 1 + ulExtraAllocate;
    219221            pxstr->psz = (PSZ)malloc(pxstr->cbAllocated);
    220222            strcpy(pxstr->psz, pcszSource);
Note: See TracChangeset for help on using the changeset viewer.