]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/strpbrk.3
dlopen.3: Note that symbol use might keep a dlclose'd object in memory
[thirdparty/man-pages.git] / man3 / strpbrk.3
CommitLineData
fea681da
MK
1.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2.\"
93015253 3.\" %%%LICENSE_START(VERBATIM)
fea681da
MK
4.\" Permission is granted to make and distribute verbatim copies of this
5.\" manual provided the copyright notice and this permission notice are
6.\" preserved on all copies.
7.\"
8.\" Permission is granted to copy and distribute modified versions of this
9.\" manual under the conditions for verbatim copying, provided that the
10.\" entire resulting derived work is distributed under the terms of a
11.\" permission notice identical to this one.
c13182ef 12.\"
fea681da
MK
13.\" Since the Linux kernel and libraries are constantly changing, this
14.\" manual page may be incorrect or out-of-date. The author(s) assume no
15.\" responsibility for errors or omissions, or for damages resulting from
16.\" the use of the information contained herein. The author(s) may not
17.\" have taken the same level of care in the production of this manual,
18.\" which is licensed free of charge, as they might when working
19.\" professionally.
c13182ef 20.\"
fea681da
MK
21.\" Formatted or processed versions of this manual, if unaccompanied by
22.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 23.\" %%%LICENSE_END
fea681da
MK
24.\"
25.\" References consulted:
26.\" Linux libc source code
27.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28.\" 386BSD man pages
29.\" Modified Sat Jul 24 18:01:24 1993 by Rik Faith (faith@cs.unc.edu)
460495ca 30.TH STRPBRK 3 2015-08-08 "" "Linux Programmer's Manual"
fea681da 31.SH NAME
a00b7454 32strpbrk \- search a string for any of a set of bytes
fea681da
MK
33.SH SYNOPSIS
34.nf
35.B #include <string.h>
68e4db0a 36.PP
fea681da
MK
37.BI "char *strpbrk(const char *" s ", const char *" accept );
38.fi
39.SH DESCRIPTION
60a90ecd
MK
40The
41.BR strpbrk ()
42function locates the first occurrence in the
46d8df8e
MK
43string
44.I s
45of any of the bytes in the string
46.IR accept .
47297adb 47.SH RETURN VALUE
60a90ecd
MK
48The
49.BR strpbrk ()
a00b7454 50function returns a pointer to the byte in
46d8df8e
MK
51.I s
52that matches one of the bytes in
53.IR accept ,
54or NULL
a00b7454 55if no such byte is found.
99c2f1a2 56.SH ATTRIBUTES
5887c9cd
PH
57For an explanation of the terms used in this section, see
58.BR attributes (7).
59.TS
60allbox;
61lb lb lb
62l l l.
63Interface Attribute Value
64T{
99c2f1a2 65.BR strpbrk ()
5887c9cd
PH
66T} Thread safety MT-Safe
67.TE
47297adb 68.SH CONFORMING TO
c2b0d7b5 69POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
47297adb 70.SH SEE ALSO
fea681da
MK
71.BR index (3),
72.BR memchr (3),
73.BR rindex (3),
74.BR strchr (3),
d095200e 75.BR string (3),
fea681da
MK
76.BR strsep (3),
77.BR strspn (3),
78.BR strstr (3),
1709027c
MK
79.BR strtok (3),
80.BR wcspbrk (3)