1strpbrk(3) Library Functions Manual strpbrk(3)
2
3
4
6 strpbrk - search a string for any of a set of bytes
7
9 Standard C library (libc, -lc)
10
12 #include <string.h>
13
14 char *strpbrk(const char *s, const char *accept);
15
17 The strpbrk() function locates the first occurrence in the string s of
18 any of the bytes in the string accept.
19
21 The strpbrk() function returns a pointer to the byte in s that matches
22 one of the bytes in accept, or NULL if no such byte is found.
23
25 For an explanation of the terms used in this section, see at‐
26 tributes(7).
27
28 ┌────────────────────────────────────────────┬───────────────┬─────────┐
29 │Interface │ Attribute │ Value │
30 ├────────────────────────────────────────────┼───────────────┼─────────┤
31 │strpbrk() │ Thread safety │ MT-Safe │
32 └────────────────────────────────────────────┴───────────────┴─────────┘
33
35 C11, POSIX.1-2008.
36
38 POSIX.1-2001, C89, SVr4, 4.3BSD.
39
41 memchr(3), strchr(3), string(3), strsep(3), strspn(3), strstr(3),
42 strtok(3), wcspbrk(3)
43
44
45
46Linux man-pages 6.05 2023-07-20 strpbrk(3)