Changeset 123 for trunk/dll/viewinf.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/viewinf.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/* offset 107:  title of INF file */
    214
     
    7183          p = strtok(holdenv,";");
    7284          while(p) {
    73             lstrip(rstrip(p));
     85            bstrip(p);
    7486            if(*p) {
    7587
     
    111123                      fread(title,1,CCHMAXPATH - 2,fp);
    112124                      title[CCHMAXPATH - 3] = 0;
    113                       lstrip(rstrip(title));
     125                      bstrip(title);
    114126                      fclose(fp);
    115127                    }
     
    334346                                    CCHMAXPATH,
    335347                                    szBuffer);
    336                 lstrip(rstrip(szBuffer));
     348                bstrip(szBuffer);
    337349                sSelect = (SHORT)WinSendDlgItemMsg(hwnd,
    338350                                                   VINF_LISTBOX,
     
    527539                                1000,
    528540                                szBuffer);
    529             lstrip(rstrip(szBuffer));
     541            bstrip(szBuffer);
    530542            PrfWriteProfileData(fmprof,
    531543                                FM3Str,
     
    569581                  break;
    570582                p++;
    571                   lstrip(rstrip(p));
     583                  bstrip(p);
    572584                if(*p)
    573585                  ViewHelp(p);
     
    594606                  if(p) {
    595607                    p++;
    596                     lstrip(rstrip(p));
     608                    bstrip(p);
    597609                    if(*p) {
    598610                      if(notfirst)
     
    613625                                    CCHMAXPATH * 2,
    614626                                    text);
    615                 lstrip(rstrip(text));
     627                bstrip(text);
    616628                fprintf(fp,
    617629                        "\nVIEW FM2REF%s%s\nDEL %s\n",
Note: See TracChangeset for help on using the changeset viewer.