Table of Contents

NAME

SYNOPSIS

DESCRIPTION

The locates in the null-terminated string at the first occurrence of any character in and replaces this with a records the location of the immediate following character in then returns the original value of If no delimiter characters are found, sets to if is initially returns

EXAMPLES

The following uses to parse strings containing runs of white space, making up an argument vector: char inputstring[100]; char **argv[51], **ap = argv, *p, *val; /* set up inputstring */ for (p = inputstring; p != NULL; ) {    while ((val = strsep(&p, " \t")) != NULL && *val == ’\0’);
   *ap++ = val;
} *ap = 0;

HISTORY

The function is


Table of Contents