Ignore:
Timestamp:
Aug 30, 2001, 9:19:59 PM (24 years ago)
Author:
phaller
Message:

SHLWAPI update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shlwapi/string.c

    r5753 r6608  
    530530
    531531/*************************************************************************
     532 *      StrTrimA        [SHLWAPI.@]
     533 */
     534BOOL WINAPI StrTrimA(LPSTR pszSource, LPCSTR pszTrimChars)
     535{
     536    BOOL trimmed = FALSE;
     537    LPSTR pSrc;
     538    LPCSTR pTrim;
     539
     540    TRACE("('%s', '%s');\n", pszSource, pszTrimChars);
     541    for (pTrim = pszTrimChars; *pTrim; pTrim++)
     542    {
     543         for (pSrc = pszSource; *pSrc; pSrc++)
     544             if (*pSrc == *pTrim)
     545             {
     546                 /* match -> remove this char.
     547                  * strlen(pSrc) equiv. to the correct strlen(pSrc+1)+1 */
     548                 memmove(pSrc, pSrc+1, strlen(pSrc));
     549                 trimmed = TRUE;
     550             }
     551    }
     552    TRACE("<- '%s'\n", pszSource);
     553    return trimmed;
     554}
     555
     556/*************************************************************************
    532557 *      wnsprintfA      [SHLWAPI]
    533558 */
Note: See TracChangeset for help on using the changeset viewer.