STRSPLIT(3pub) C Programmer's Manual STRSPLIT(3pub)
NAME
strsplit - split string into words
SYNOPSIS
#include <publib.h>
int strsplit(char *src, char **words, int maxw, const char *sep);
DESCRIPTION
strsplit splits the src string into words separated by one or more of the characters in sep (or by whitespace characters, as specified by
isspace(3), if sep is the empty string). Pointers to the words are stored in successive elements in the array pointed to by words. No
more than maxw pointers are stored. The input string is modifed by replacing the separator character following a word with '