Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/libbb/skip_whitespace.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/libbb/skip_whitespace.c
r821 r1770 8 8 */ 9 9 10 #include <ctype.h>11 10 #include "libbb.h" 12 11 13 12 char *skip_whitespace(const char *s) 14 13 { 14 /* NB: isspace('0') returns 0 */ 15 15 while (isspace(*s)) ++s; 16 16 17 17 return (char *) s; 18 18 } 19 20 char *skip_non_whitespace(const char *s) 21 { 22 while (*s && !isspace(*s)) ++s; 23 24 return (char *) s; 25 }
Note:
See TracChangeset
for help on using the changeset viewer.