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 at‐
23 tributes(7).
24
25 ┌────────────────────────────────────────────┬───────────────┬─────────┐
26 │Interface │ Attribute │ Value │
27 ├────────────────────────────────────────────┼───────────────┼─────────┤
28 │strpbrk() │ Thread safety │ MT-Safe │
29 └────────────────────────────────────────────┴───────────────┴─────────┘
30
32 POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
33
35 index(3), memchr(3), rindex(3), strchr(3), string(3), strsep(3), str‐
36 spn(3), strstr(3), strtok(3), wcspbrk(3)
37
39 This page is part of release 5.12 of the Linux man-pages project. A
40 description of the project, information about reporting bugs, and the
41 latest version of this page, can be found at
42 https://www.kernel.org/doc/man-pages/.
43
44
45
46 2021-03-22 STRPBRK(3)