Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/tcpdump/missing/strsep.c
Show All 33 Lines | |||||
#ifdef HAVE_CONFIG_H | #ifdef HAVE_CONFIG_H | ||||
#include <config.h> | #include <config.h> | ||||
#endif | #endif | ||||
#include <tcpdump-stdinc.h> | #include <tcpdump-stdinc.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include "interface.h" | |||||
/* | /* | ||||
* Get next token from string *stringp, where tokens are possibly-empty | * Get next token from string *stringp, where tokens are possibly-empty | ||||
* strings separated by characters from delim. | * strings separated by characters from delim. | ||||
* | * | ||||
* Writes NULs into the string at *stringp to end tokens. | * Writes NULs into the string at *stringp to end tokens. | ||||
* delim need not remain constant from call to call. | * delim need not remain constant from call to call. | ||||
* On return, *stringp points past the last NUL written (if there might | * On return, *stringp points past the last NUL written (if there might | ||||
* be further tokens), or is NULL (if there are definitely no more tokens). | * be further tokens), or is NULL (if there are definitely no more tokens). | ||||
Show All 29 Lines |