Changeset 123 for trunk/dll/assoc.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/assoc.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_DOS
    214#define INCL_WIN
     
    127139        break;
    128140      mask[CCHMAXPATH] = 0;
    129       stripcr(mask);
    130       lstrip(rstrip(mask));
     141      bstripcr(mask);
    131142      if(!*mask || *mask == ';')
    132143        continue;
     
    140151      offset[34] = 0;
    141152      flags[34] = 0;
    142       stripcr(cl);
    143       stripcr(sig);
    144       stripcr(offset);
    145       stripcr(flags);
    146       lstrip(rstrip(cl));
    147       lstrip(rstrip(sig));
    148       lstrip(rstrip(offset));
    149       lstrip(rstrip(flags));
     153      bstripcr(cl);
     154      bstripcr(sig);
     155      bstripcr(offset);
     156      bstripcr(flags);
    150157      if(!*cl)
    151158        continue;
     
    672679              temp.offset = atol(dummy);
    673680            }
    674             lstrip(rstrip(temp.mask));
    675             lstrip(rstrip(temp.cl));
     681            bstrip(temp.mask);
     682            bstrip(temp.cl);
    676683            if(WinQueryButtonCheckstate(hwnd,ASS_DEFAULT))
    677684              temp.flags = 0;
     
    697704              *s = 0;
    698705              WinQueryDlgItemText(hwnd,ASS_ENVIRON,1000,s);
    699               stripcr(s);
    700               lstrip(rstrip(s));
     706              bstripcr(s);
    701707              if(*s)
    702708                PrfWriteProfileString(fmprof,FM3Str,temp.cl,s);
     
    742748              temp.offset = atol(dummy);
    743749            }
    744             lstrip(rstrip(temp.mask));
     750            bstrip(temp.mask);
    745751            PrfWriteProfileData(fmprof,
    746752                                FM3Str,
Note: See TracChangeset for help on using the changeset viewer.