Lines Matching refs:str
19 static int count_argc(const char *str) in count_argc() argument
23 while (*str) { in count_argc()
24 str = skip_spaces(str); in count_argc()
25 if (*str) { in count_argc()
27 str = skip_arg(str); in count_argc()
63 char **argv_split(const char *str, int *argcp) in argv_split() argument
65 int argc = count_argc(str); in argv_split()
77 while (*str) { in argv_split()
78 str = skip_spaces(str); in argv_split()
80 if (*str) { in argv_split()
81 const char *p = str; in argv_split()
84 str = skip_arg(str); in argv_split()
86 t = strndup(p, str-p); in argv_split()