diff options
Diffstat (limited to 'libbb/skip_whitespace.c')
-rw-r--r-- | libbb/skip_whitespace.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libbb/skip_whitespace.c b/libbb/skip_whitespace.c new file mode 100644 index 0000000..02c1f58 --- /dev/null +++ b/libbb/skip_whitespace.c @@ -0,0 +1,18 @@ +/* vi: set sw=4 ts=4: */ +/* + * skip_whitespace implementation for busybox + * + * Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org> + * + * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. + */ + +#include <ctype.h> +#include "libbb.h" + +char *skip_whitespace(const char *s) +{ + while (isspace(*s)) ++s; + + return (char *) s; +} |