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 at‐
23       tributes(7).
24
25       ┌────────────────────────────────────────────┬───────────────┬─────────┐
26Interface                                   Attribute     Value   
27       ├────────────────────────────────────────────┼───────────────┼─────────┤
28strpbrk()                                   │ Thread safety │ MT-Safe │
29       └────────────────────────────────────────────┴───────────────┴─────────┘
30

CONFORMING TO

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

SEE ALSO

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

COLOPHON

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)
Impressum