9srv Manual Collection/plan9/getfields(2) | 9srv Manual Collection/plan9/getfields(2) |
---|
int getfields(char *str, char **args, int maxargs, int multiflag,
char *delims)
int gettokens(char *str, char **args, int maxargs, char *delims)
int tokenize(char *str, char **args, int maxargs)
Fields are substrings of
str
whose definition depends on the value of
multiflag.
If
multiflag
is zero,
adjacent fields are separated by exactly one delimiter.
For example
Getfields returns the number of fields pointed to.
Gettokens is the same as getfields with multiflag non-zero, except that fields may be quoted using single quotes, in the manner of rc(1). Any such quotes remain in the resulting args. See quote(2) for related quote-handling software.
Tokenize is similar to gettokens with delims set to "\t\r\n ", except that quotes are interpreted but do not appear in the resulting args.
9srv Manual Collection/plan9/getfields(2) | Rev: Thu May 26 20:47:20 BST 2011 |