source: trunk/dll/strips.h@ 1194

Last change on this file since 1194 was 1178, checked in by John Small, 17 years ago

Ticket 187: Draft 2: Move remaining function declarations

File size: 1.0 KB
Line 
1
2/***********************************************************************
3
4$Id: $
5
6<<<description here>>>
7
8Copyright (c) 1993-98 M. Kimes
9Copyright (c) 2008 Steven H. Levine
10
11Change log
12
13***********************************************************************/
14
15#if !defined(STRIPS_H)
16#define STRIPS_H
17
18VOID chop_at_crnl(PSZ pszSrc);
19PSZ convert_nl_to_nul(PSZ pszSrc);
20VOID remove_first_occurence_of_character(char *pszRemoveChar, char *pszSrc);
21
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
34
35#endif // STRIPS_H
Note: See TracBrowser for help on using the repository browser.