Ignore:
Timestamp:
Jan 19, 2003, 8:42:16 PM (23 years ago)
Author:
umoeller
Message:

First attempt at new container contol.

File:
1 edited

Legend:

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

    r240 r242  
    456456                CHAR c)
    457457{
    458     PSZ         p = (PSZ)pszSearch;
    459     ULONG       ulCount = 0;
     458    PCSZ    p = pszSearch;
     459    ULONG   ulCount = 0;
    460460    while (TRUE)
    461461    {
    462         p = strchr(p, c);
    463         if (p)
    464         {
    465             ulCount++;
    466             p++;
    467         }
    468         else
    469             break;
    470     }
    471     return ulCount;
     462        if (!(p = strchr(p, c)))
     463            return ulCount;
     464
     465        ulCount++;
     466        p++;
     467    }
    472468}
    473469
Note: See TracChangeset for help on using the changeset viewer.