]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/strpbrk.3
intro.1, _exit.2, access.2, alarm.2, alloc_hugepages.2, arch_prctl.2, bind.2, chdir...
[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)
eae2dfce 30.TH STRPBRK 3 2012-05-10 "" "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>
36.sp
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
a00b7454 43string \fIs\fP of any of the bytes in the string \fIaccept\fP.
47297adb 44.SH RETURN VALUE
60a90ecd
MK
45The
46.BR strpbrk ()
a00b7454
MK
47function returns a pointer to the byte in
48\fIs\fP that matches one of the bytes in \fIaccept\fP, or NULL
49if no such byte is found.
47297adb 50.SH CONFORMING TO
1eb85d14 51SVr4, 4.3BSD, C89, C99.
47297adb 52.SH SEE ALSO
fea681da
MK
53.BR index (3),
54.BR memchr (3),
55.BR rindex (3),
56.BR strchr (3),
d095200e 57.BR string (3),
fea681da
MK
58.BR strsep (3),
59.BR strspn (3),
60.BR strstr (3),
1709027c
MK
61.BR strtok (3),
62.BR wcspbrk (3)