strsep (9) - Linux Manuals
strsep: Split a string into tokens
Command to display strsep
manual in Linux: $ man 9 strsep
NAME
strsep - Split a string into tokens
SYNOPSIS
-
char * strsep(char ** s, const char * ct);
ARGUMENTS
s
-
- The string to be searched
ct
-
The characters to search for
DESCRIPTION
strsep
updates
s
to point after the token, ready for the next call.
It returns empty tokens, too, behaving exactly like the libc function of that name. In fact, it was stolen from glibc2 and de-fancy-fied. Same semantics, slimmer shape. ;)
COPYRIGHT
Pages related to strsep
- strsep (3) - extract token from string
- strscpy (9) - Copy a C-string into a sized buffer
- strspn (9) - Calculate the length of the initial substring of s which only contain letters in accept
- strstr (9) - Find the first substring in a NUL terminated string
- strcat (9) - Append one NUL-terminated string to another
- strchr (9) - Find the first occurrence of a character in a string
- strchrnul (9) - Find and return a character in a string, or end of string
- strcmp (9) - Compare two strings