]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/strpbrk.3
a4aead713d89261c379cafb5e3133c1af0e12916
[thirdparty/man-pages.git] / man3 / strpbrk.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .\" References consulted:
6 .\" Linux libc source code
7 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
8 .\" 386BSD man pages
9 .\" Modified Sat Jul 24 18:01:24 1993 by Rik Faith (faith@cs.unc.edu)
10 .TH STRPBRK 3 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
11 .SH NAME
12 strpbrk \- search a string for any of a set of bytes
13 .SH LIBRARY
14 Standard C library
15 .RI ( libc ", " \-lc )
16 .SH SYNOPSIS
17 .nf
18 .B #include <string.h>
19 .PP
20 .BI "char *strpbrk(const char *" s ", const char *" accept );
21 .fi
22 .SH DESCRIPTION
23 The
24 .BR strpbrk ()
25 function locates the first occurrence in the
26 string
27 .I s
28 of any of the bytes in the string
29 .IR accept .
30 .SH RETURN VALUE
31 The
32 .BR strpbrk ()
33 function returns a pointer to the byte in
34 .I s
35 that matches one of the bytes in
36 .IR accept ,
37 or NULL
38 if no such byte is found.
39 .SH ATTRIBUTES
40 For an explanation of the terms used in this section, see
41 .BR attributes (7).
42 .ad l
43 .nh
44 .TS
45 allbox;
46 lbx lb lb
47 l l l.
48 Interface Attribute Value
49 T{
50 .BR strpbrk ()
51 T} Thread safety MT-Safe
52 .TE
53 .hy
54 .ad
55 .sp 1
56 .SH STANDARDS
57 POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
58 .SH SEE ALSO
59 .BR index (3),
60 .BR memchr (3),
61 .BR rindex (3),
62 .BR strchr (3),
63 .BR string (3),
64 .BR strsep (3),
65 .BR strspn (3),
66 .BR strstr (3),
67 .BR strtok (3),
68 .BR wcspbrk (3)