1STRPBRK(3)                 Linux Programmer's Manual                STRPBRK(3)
2
3
4

NAME

6       strpbrk - search a string for any of a set of bytes
7

SYNOPSIS

9       #include <string.h>
10
11       char *strpbrk(const char *s, const char *accept);
12

DESCRIPTION

14       The  strpbrk() function locates the first occurrence in the string s of
15       any of the bytes in the string accept.
16

RETURN VALUE

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

ATTRIBUTES

22       For   an   explanation   of   the  terms  used  in  this  section,  see
23       attributes(7).
24
25       ┌──────────┬───────────────┬─────────┐
26Interface Attribute     Value   
27       ├──────────┼───────────────┼─────────┤
28strpbrk() │ Thread safety │ MT-Safe │
29       └──────────┴───────────────┴─────────┘

CONFORMING TO

31       POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
32

SEE ALSO

34       index(3), memchr(3), rindex(3), strchr(3), string(3),  strsep(3),  str‐
35       spn(3), strstr(3), strtok(3), wcspbrk(3)
36

COLOPHON

38       This  page  is  part of release 4.15 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)
Impressum