.\" Copyright (c) 1990 The Regents of the University of California.
.\" This code is derived from software contributed to Berkeley by
.\" %sccs.include.redist.man%
.\" @(#)strsep.3 5.1 (Berkeley) %G%
strsep \- separate strings
strsep(char **stringp, char *delim);
locates in the null-terminated string at
the first occurence of any character in
and replaces this with a '\e0',
records the location of the immediate following character in
then returns the original value of
If no delimiter characters are found,
to parse strings containing runs of white space,
making up an argument vector:
char **argv[51], **ap = argv, *p, *val;
.I "/* set up inputstring */"
for (p = inputstring; p != NULL; ) {
while ((val = strsep(&p, " \et")) != NULL && *val == '\e0');