Changeset 123 for trunk/dll/walkem.c


Ignore:
Timestamp:
Dec 5, 2004, 1:20:19 AM (21 years ago)
Author:
root
Message:

Rework lstrip/rstrip usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/walkem.c

    r2 r123  
     1
     2/***********************************************************************
     3
     4  $Id$
     5
     6  Copyright (c) 1993-98 M. Kimes
     7  Copyright (c) 2004 Steven H.Levine
     8
     9  Revisions     01 Aug 04 SHL - Rework lstrip/rstrip usage
     10
     11***********************************************************************/
     12
    113#define INCL_WIN
    214#define INCL_DOS
     
    136148        break;
    137149      s[CCHMAXPATH] = 0;
    138       stripcr(s);
    139       lstrip(rstrip(s));
     150      bstripcr(s);
    140151      if(*s && *s != ';') {
    141152        info = malloc(sizeof(LINKDIRS));
     
    860871            APIRET       rc;
    861872
    862             lstrip(rstrip(szBuffer));
     873            bstrip(szBuffer);
    863874            if(*szBuffer) {
    864875              strcpy(szBuff,wa->szCurrentPath);
     
    917928                          CCHMAXPATH,
    918929                          szBuff);
    919       lstrip(rstrip(szBuff));
     930      bstrip(szBuff);
    920931      while((p = strchr(szBuff,'/')) != NULL)
    921932        *p = '\\';
     
    946957                              CCHMAXPATH,
    947958                              szBuff);
    948           lstrip(rstrip(szBuff));
     959          bstrip(szBuff);
    949960          while((p = strchr(szBuff,'/')) != NULL)
    950961            *p = '\\';
     
    969980          *szBuff = 0;
    970981          WinQueryDlgItemText(hwnd,WALK_PATH,CCHMAXPATH,szBuff);
    971           lstrip(rstrip(szBuff));
     982          bstrip(szBuff);
    972983          while((p = strchr(szBuff,'/')) != NULL)
    973984            *p = '\\';
     
    13011312            APIRET       rc;
    13021313
    1303             lstrip(rstrip(szBuffer));
     1314            bstrip(szBuffer);
    13041315            if(*szBuffer) {
    13051316              strcpy(szBuff,wa->szCurrentPath1);
     
    13701381            APIRET       rc;
    13711382
    1372             lstrip(rstrip(szBuffer));
     1383            bstrip(szBuffer);
    13731384            if(*szBuffer) {
    13741385              strcpy(szBuff,wa->szCurrentPath2);
     
    14201431                          CCHMAXPATH,
    14211432                          szBuff);
    1422       lstrip(rstrip(szBuff));
     1433      bstrip(szBuff);
    14231434      while((p = strchr(szBuff,'/')) != NULL)
    14241435        *p = '\\';
     
    14461457                          CCHMAXPATH,
    14471458                          szBuff);
    1448       lstrip(rstrip(szBuff));
     1459      bstrip(szBuff);
    14491460      while((p = strchr(szBuff,'/')) != NULL)
    14501461        *p = '\\';
Note: See TracChangeset for help on using the changeset viewer.