Ignore:
Timestamp:
Feb 23, 2002, 8:47:51 AM (23 years ago)
Author:
umoeller
Message:

PageMage fixes et al.

File:
1 edited

Legend:

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

    r140 r143  
    371371
    372372    return (ul);
     373}
     374
     375/*
     376 *@@ strhSize:
     377 *      returns the size of the given string, which
     378 *      is the memory required to allocate a copy,
     379 *      including the null terminator.
     380 *
     381 *      Returns 0 if pcsz is NULL or points to a
     382 *      null character.
     383 *
     384 *@@added V0.9.18 (2002-02-13) [umoeller]
     385 */
     386
     387ULONG strhSize(PCSZ pcsz)
     388{
     389    if (pcsz && *pcsz)
     390        return (strlen(pcsz) + 1);
     391
     392    return (0);
    373393}
    374394
     
    603623    if ((p1 = strchr(pszBuf, cQuote)))
    604624    {
    605         PSZ p2 = strchr(p1+1, cQuote);
    606         if (p2)
     625        PSZ p2;
     626        if (p2 = strchr(p1+1, cQuote))
    607627        {
    608628            pszReturn = strhSubstr(p1+1, p2);
Note: See TracChangeset for help on using the changeset viewer.