Debian Codegraph @

upstream/debian-trixie/man3/strpbrk.3

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