| getfields, gettokens, tokenize \- break a string into fields |
| int getfields(char *str, char **args, int maxargs, int multiflag, |
| int gettokens(char *str, char **args, int maxargs, char *delims) |
| int tokenize(char *str, char **args, int maxargs) |
| fields of the null terminated |
| Delimiters between these fields are set to null. |
| whose definition depends on the value of |
| adjacent fields are separated by exactly one delimiter. |
| getfields("#alice#bob##charles###", arg, 3, 0, "#"); |
| a field is a non-empty string of non-delimiters. |
| getfields("#alice#bob##charles###", arg, 3, 1, "#"); |
| yields the three substrings: |
| Getfields returns the number of fields pointed to. |
| except that fields may be quoted using single quotes, in the manner |
| for related quote-handling software. |
| set to \f5"\et\er\en "\fP. |
| .B /usr/local/plan9/src/libc/port/tokenize.c |