Home
last modified time | relevance | path

Searched refs:num_toks (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/fs/doio/
Dstring_to_tokens.c83 int num_toks = 0; /* number of tokens found */ in string_to_tokens() local
93 if ((arg_array[num_toks] = strtok(arg_string, separator)) == NULL) { in string_to_tokens()
97 for (num_toks = 1; num_toks < array_size; num_toks++) { in string_to_tokens()
98 if ((arg_array[num_toks] = strtok(NULL, separator)) == NULL) in string_to_tokens()
102 if (num_toks == array_size) in string_to_tokens()
103 arg_array[num_toks] = NULL; in string_to_tokens()
108 return (num_toks); in string_to_tokens()
/external/ltp/pan/
Dsplitstr.c65 int num_toks = 0, max_toks = 20, i; in splitstr() local
110 arg_array[num_toks++] = cur_tok; in splitstr()
112 if (num_toks == max_toks) { in splitstr()
124 arg_array[num_toks] = NULL; in splitstr()
129 for (i = num_toks + 1; i < max_toks; i++) in splitstr()
137 *argcount = num_toks; in splitstr()