Changeset 10073 for trunk/Ohana/src/misc/src/test.c
- Timestamp:
- Nov 17, 2006, 5:04:25 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/misc/src/test.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/misc/src/test.c
r7080 r10073 23 23 # define ISNUM(c) (isdigit(c) || (c == '-') || (c == '.')) 24 24 25 /* Strip whitespacefrom the start and end of STRING. */25 /* Strip WHITESPACE from the start and end of STRING. */ 26 26 int stripwhite (string) 27 27 char *string; … … 32 32 return (0); 33 33 34 for (i = 0; whitespace(string[i]); i++);34 for (i = 0; OHANA_WHITESPACE (string[i]); i++); 35 35 36 36 if (i) … … 39 39 i = strlen (string) - 1; 40 40 41 for (; (i > 0) && whitespace(string[i]); i--);41 for (; (i > 0) && OHANA_WHITESPACE (string[i]); i--); 42 42 43 43 string[++i] = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
