source: trunk/dll/strips.h@ 1570

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

Ticket 187: Set properties and improve comments

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1
2/***********************************************************************
3
4 $Id: strips.h 1200 2008-09-11 12:51:03Z jbs $
5
6 <<<description here>>>
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2008 Steven H. Levine
10
11 Change 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.