]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/strpbrk.3
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / man3 / strpbrk.3
CommitLineData
fea681da
MK
1.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2.\"
5fbde956 3.\" SPDX-License-Identifier: Linux-man-pages-copyleft
fea681da
MK
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)
45186a5d 10.TH STRPBRK 3 2021-03-22 "Linux man-pages (unreleased)"
fea681da 11.SH NAME
a00b7454 12strpbrk \- search a string for any of a set of bytes
ed20ecfc
AC
13.SH LIBRARY
14Standard C library
8fc3b2cf 15.RI ( libc ", " \-lc )
fea681da
MK
16.SH SYNOPSIS
17.nf
18.B #include <string.h>
68e4db0a 19.PP
fea681da
MK
20.BI "char *strpbrk(const char *" s ", const char *" accept );
21.fi
22.SH DESCRIPTION
60a90ecd
MK
23The
24.BR strpbrk ()
25function locates the first occurrence in the
46d8df8e
MK
26string
27.I s
28of any of the bytes in the string
29.IR accept .
47297adb 30.SH RETURN VALUE
60a90ecd
MK
31The
32.BR strpbrk ()
a00b7454 33function returns a pointer to the byte in
46d8df8e
MK
34.I s
35that matches one of the bytes in
36.IR accept ,
37or NULL
a00b7454 38if no such byte is found.
99c2f1a2 39.SH ATTRIBUTES
5887c9cd
PH
40For an explanation of the terms used in this section, see
41.BR attributes (7).
c466875e
MK
42.ad l
43.nh
5887c9cd
PH
44.TS
45allbox;
c466875e 46lbx lb lb
5887c9cd
PH
47l l l.
48Interface Attribute Value
49T{
99c2f1a2 50.BR strpbrk ()
5887c9cd
PH
51T} Thread safety MT-Safe
52.TE
c466875e
MK
53.hy
54.ad
55.sp 1
3113c7f3 56.SH STANDARDS
c2b0d7b5 57POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
47297adb 58.SH SEE ALSO
fea681da
MK
59.BR index (3),
60.BR memchr (3),
61.BR rindex (3),
62.BR strchr (3),
d095200e 63.BR string (3),
fea681da
MK
64.BR strsep (3),
65.BR strspn (3),
66.BR strstr (3),
1709027c
MK
67.BR strtok (3),
68.BR wcspbrk (3)