ne_token (3) - Linux Manuals
ne_token: string tokenizers
NAME
ne_token, ne_qtoken - string tokenizers
SYNOPSIS
#include <ne_string.h>
-
char *ne_token(char
** str, charsep); - char *ne_qtoken(char
** str, charsep, const char * quotes); - char *ne_qtoken(char
DESCRIPTION
ne_token
The string being tokenized is modified each time the tokenizing function is called; replacing the next separator character with a NUL terminator.
EXAMPLES
The following function prints out each token in a comma-separated string list, which is modified in-place:
-
static void splitter(char *list) { do { printf("Token: %s\n", ne_token(&list, ',')); while (list); }
AUTHOR
Joe Orton <neon [at] lists.manyfish.co.uk>
- Author.
COPYRIGHT