Ignore:
Timestamp:
Apr 14, 2002, 1:42:05 AM (23 years ago)
Author:
umoeller
Message:

Lots of changes from the last three weeks.

File:
1 edited

Legend:

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

    r152 r153  
    326326            strupr(pszSrchFor);
    327327
    328             prc = strstr(pszSrchIn, pszSrchFor);
    329             if (prc)
     328            if (prc = strstr(pszSrchIn, pszSrchFor))
    330329            {
    331330                // prc now has the first occurence of the string,
     
    371370
    372371    return (ul);
     372}
     373
     374/*
     375 *@@ strhlen:
     376 *      like strlen, but doesn't crash on
     377 *      null strings, but returns 0 also.
     378 *
     379 *@@added V0.9.19 (2002-04-02) [umoeller]
     380 */
     381
     382ULONG strhlen(PCSZ pcsz)
     383{
     384    if (pcsz)
     385        return (strlen(pcsz));
     386
     387    return 0;
    373388}
    374389
Note: See TracChangeset for help on using the changeset viewer.