Lines Matching refs:str
19 static int count_argc(const char *str)
23 while (*str) {
24 str = skip_spaces(str);
25 if (*str) {
27 str = skip_arg(str);
53 * @str: the string to be split
57 * @str. This is performed by strictly splitting on white-space; no
63 char **argv_split(gfp_t gfp, const char *str, int *argcp)
65 int argc = count_argc(str);
77 while (*str) {
78 str = skip_spaces(str);
80 if (*str) {
81 const char *p = str;
84 str = skip_arg(str);
86 t = kstrndup(p, str-p, gfp);