Ignore:
Timestamp:
Dec 24, 2002, 8:44:35 AM (23 years ago)
Author:
umoeller
Message:

Misc fixes.

File:
1 edited

Legend:

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

    r196 r238  
    220220 *@@ strhdup:
    221221 *      like strdup, but this one doesn't crash if pszSource
    222  *      is NULL, but returns NULL also. In addition, this
     222 *      is NULL. Instead, this returns NULL if pcszSource is
     223 *      NULL or points to a null byte. In addition, this
    223224 *      can report the length of the string (V0.9.16).
    224225 *
     
    407408{
    408409    if (pcsz) //  && *pcsz) // V0.9.18 (2002-03-27) [umoeller]
    409         return (strlen(pcsz) + 1);
     410        return strlen(pcsz) + 1;
    410411
    411412    return 0;
     
    10281029        *pulOffset = prc - pcszSearchIn;
    10291030
    1030     return ((PSZ)prc);
     1031    return (PSZ)prc;
    10311032}
    10321033
     
    18551856
    18561857    if (pattern_size == 0)              //  Empty patterns match at start
    1857         return ((void *)block);
     1858        return (void*)block;
    18581859
    18591860    //  Build the shift table unless we're continuing a previous search
     
    19011902            // If we found a match, return the start address
    19021903            if (match_size >= pattern_size)
    1903                 return ((void*)(match_base));
     1904                return (void*)match_base;
    19041905
    19051906        }
     
    19591960
    19601961    if (pattern_size == 0)              //  Empty string matches at start
    1961         return (char *) string;
     1962        return (char*)string;
    19621963
    19631964    //  Build the shift table
     
    19971998            //  If we found a match, return the start address
    19981999            if (match_size >= pattern_size)
    1999                 return ((char *)(match_base));
     2000                return (char*)match_base;
    20002001          }
    20012002      }
Note: See TracChangeset for help on using the changeset viewer.