4 * Copyright (C) 1991, 1992 Linus Torvalds
11 #include <linux/ctype.h>
12 #include <linux/string.h>
15 * skip_spaces - Removes leading whitespace from @str.
16 * @str: The string to be stripped.
18 * Returns a pointer to the first non-whitespace character in @str.
20 char *skip_spaces(const char *str)
28 * strim - Removes leading and trailing whitespace from @s.
29 * @s: The string to be stripped.
31 * Note that the first trailing whitespace is replaced with a %NUL-terminator
32 * in the given string @s. Returns a pointer to the first non-whitespace
46 while (end >= s && isspace(*end))