.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" This code is derived from software contributed to Berkeley by
.\" %sccs.include.redist.roff%
.\" @(#)strsep.3 5.4 (Berkeley) %G%
.Fn strsep "char **stringp" "char *delim"
function locates in the null-terminated string at
the first occurence of any character in
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:
.Bd -literal -offset indent
char **argv[51], **ap = argv, *p, *val;
for (p = inputstring; p != NULL; ) {
while ((val = strsep(&p, " \et")) != NULL && *val == '\e0');