Lines Matching defs: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(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 = strndup(p, str-p);