16
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20
19
#ifndef GNULIB_STRSEP_H_
21
20
#define GNULIB_STRSEP_H_
26
27
* Get strsep() declaration.
28
30
#include <string.h>
32
/* Searches the next delimiter (char listed in DELIM) starting at *STRINGP.
33
If one is found, it is overwritten with a NUL, and *STRINGP is advanced
34
to point to the next char after it. Otherwise, *STRINGP is set to NULL.
35
If *STRINGP was already NULL, nothing happens.
36
Returns the old value of *STRINGP.
38
This is a variant of strtok() that is multithread-safe and supports
41
Caveat: It modifies the original string.
42
Caveat: These functions cannot be used on constant strings.
43
Caveat: The identity of the delimiting character is lost.
44
Caveat: It doesn't work with multibyte strings unless all of the delimiter
45
characters are ASCII characters < 0x30.
47
See also strtok_r(). */
49
SQUIDCEXTERN char *strsep (char **stringp, const char *delim);
37
Searches the next delimiter (char listed in DELIM) starting at *STRINGP.
38
If one is found, it is overwritten with a NULL, and *STRINGP is advanced
39
to point to the next char after it. Otherwise, *STRINGP is set to NULL.
40
If *STRINGP was already NULL, nothing happens.
41
Returns the old value of *STRINGP.
43
This is a variant of strtok() that is multithread-safe and supports
46
\note Caveat: It modifies the original string.
47
\note Caveat: These functions cannot be used on constant strings.
48
\note Caveat: The identity of the delimiting character is lost.
49
\note Caveat: It doesn't work with multibyte strings unless all of the delimiter
50
characters are ASCII characters < 0x30.
54
SQUIDCEXTERN char *strsep(char **stringp, const char *delim);
56
#endif /* HAVE_STRSEP */
53
58
#endif /* GNULIB_STRSEP_H_ */