| Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3) |
STRSEPSection: Linux Programmer's Manual (3)Updated: April 12, 2025 Index NAMEstrsep - extract token from stringSYNOPSIS#include <string.h> char *strsep(char **stringp, const char *delim); DESCRIPTIONThe strsep() function returns the next token from the string stringp which is delimited by delim. The token is terminated with a `\0' character and stringp is updated to point past the token.RETURN VALUEThe strsep() function returns a pointer to the token, or NULL if delim is not found in stringp.NOTESThe strsep() function was introduced as a replacement for strtok(), since the latter cannot handle empty fields. (However, strtok() conforms to ANSI-C and hence is more portable.)CONFORMING TOBSD 4.4SEE ALSO
IndexThis document was created by using the manual pages. Time: 11:58:06 GMT, March 24, 2025 |
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |