Rev 3366 | Rev 3377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3366 | Rev 3376 | ||
---|---|---|---|
Line 235... | Line 235... | ||
235 | { |
235 | { |
236 | static char *last; |
236 | static char *last; |
237 | 237 | ||
238 | return (cli_strtok_r(s, delim, &last)); |
238 | return (cli_strtok_r(s, delim, &last)); |
239 | } |
239 | } |
- | 240 | ||
- | 241 | /* Count and return the # of elements in an array */ |
|
- | 242 | unsigned int cli_count_args(char **args) |
|
- | 243 | { |
|
- | 244 | unsigned int i; |
|
- | 245 | ||
- | 246 | for (i=0; args[i] != NULL; i++); |
|
- | 247 | return i; |
|
- | 248 | } |
|
- | 249 |