1STRPBRK(3) Linux Programmer's Manual STRPBRK(3)
2
3
4
6 strpbrk - search a string for any of a set of bytes
7
9 #include <string.h>
10
11 char *strpbrk(const char *s, const char *accept);
12
14 The strpbrk() function locates the first occurrence in the string s of
15 any of the bytes in the string accept.
16
18 The strpbrk() function returns a pointer to the byte in s that matches
19 one of the bytes in accept, or NULL if no such byte is found.
20
22 For an explanation of the terms used in this section, see
23 attributes(7).
24
25 ┌──────────┬───────────────┬─────────┐
26 │Interface │ Attribute │ Value │
27 ├──────────┼───────────────┼─────────┤
28 │strpbrk() │ Thread safety │ MT-Safe │
29 └──────────┴───────────────┴─────────┘
31 POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
32
34 index(3), memchr(3), rindex(3), strchr(3), string(3), strsep(3), str‐
35 spn(3), strstr(3), strtok(3), wcspbrk(3)
36
38 This page is part of release 5.02 of the Linux man-pages project. A
39 description of the project, information about reporting bugs, and the
40 latest version of this page, can be found at
41 https://www.kernel.org/doc/man-pages/.
42
43
44
45 2015-08-08 STRPBRK(3)