Changeset 1178 for trunk/dll/strips.h


Ignore:
Timestamp:
Sep 10, 2008, 11:53:43 PM (17 years ago)
Author:
John Small
Message:

Ticket 187: Draft 2: Move remaining function declarations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/strips.h

    r1168 r1178  
    2020VOID remove_first_occurence_of_character(char *pszRemoveChar, char *pszSrc);
    2121
     22/* strips.c */
     23void strip_lead_char(char *pszStripChars, char *pszSrc);
     24void strip_trail_char(char *pszStripChars, char *pszSrc);
     25#define lstrip(s)         strip_lead_char(" \t",(s))
     26#define rstrip(s)         strip_trail_char(" \t",(s))
     27#define stripcr(s)        strip_trail_char("\r\n",(s))
     28// Strip leading and trailing white
     29#define bstrip(s)         (strip_lead_char(" \t",(s)),strip_trail_char(" \t",(s)))
     30// Strip leading and trailing white and trail cr/nl
     31#define bstripcr(s)       (strip_lead_char(" \t",(s)),strip_trail_char("\r\n \t",(s)))
     32
     33
    2234
    2335#endif // STRIPS_H
Note: See TracChangeset for help on using the changeset viewer.