Changeset 123 for trunk/dll/command.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/command.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
     
    317329        break;
    318330      title[34] = 0;
    319       stripcr(title);
    320       lstrip(rstrip(title));
     331      bstripcr(title);
    321332      if(!*title || *title == ';')
    322333        continue;
     
    326337      cl[1000] = 0;
    327338      flags[34] = 0;
    328       stripcr(cl);
    329       stripcr(flags);
    330       lstrip(rstrip(cl));
    331       lstrip(rstrip(flags));
     339      bstripcr(cl);
     340      bstripcr(flags);
    332341      if(!*cl)
    333342        continue;
     
    653662                                sizeof(temp.cl),
    654663                                temp.cl);
    655             lstrip(rstrip(temp.cl));
     664            bstrip(temp.cl);
    656665            WinQueryDlgItemText(hwnd,CMD_TITLE,sizeof(temp.title),temp.title);
    657666            if(WinQueryButtonCheckstate(hwnd,CMD_DEFAULT))
     
    681690                                    1000,
    682691                                    env);
    683                 stripcr(env);
    684                 lstrip(rstrip(env));
     692                bstripcr(env);
    685693                if(*env)
    686694                  PrfWriteProfileString(fmprof,
     
    718726
    719727            WinQueryDlgItemText(hwnd,CMD_TITLE,34,temp);
    720             lstrip(rstrip(temp));
     728            bstrip(temp);
    721729            if(kill_command(temp)) {
    722730              x = (SHORT)WinSendDlgItemMsg(hwnd,
Note: See TracChangeset for help on using the changeset viewer.