]>
Commit | Line | Data |
---|---|---|
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 | 12 | strpbrk \- search a string for any of a set of bytes |
ed20ecfc AC |
13 | .SH LIBRARY |
14 | Standard 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 |
23 | The |
24 | .BR strpbrk () | |
25 | function locates the first occurrence in the | |
46d8df8e MK |
26 | string |
27 | .I s | |
28 | of any of the bytes in the string | |
29 | .IR accept . | |
47297adb | 30 | .SH RETURN VALUE |
60a90ecd MK |
31 | The |
32 | .BR strpbrk () | |
a00b7454 | 33 | function returns a pointer to the byte in |
46d8df8e MK |
34 | .I s |
35 | that matches one of the bytes in | |
36 | .IR accept , | |
37 | or NULL | |
a00b7454 | 38 | if no such byte is found. |
99c2f1a2 | 39 | .SH ATTRIBUTES |
5887c9cd PH |
40 | For 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 |
45 | allbox; | |
c466875e | 46 | lbx lb lb |
5887c9cd PH |
47 | l l l. |
48 | Interface Attribute Value | |
49 | T{ | |
99c2f1a2 | 50 | .BR strpbrk () |
5887c9cd PH |
51 | T} Thread safety MT-Safe |
52 | .TE | |
c466875e MK |
53 | .hy |
54 | .ad | |
55 | .sp 1 | |
3113c7f3 | 56 | .SH STANDARDS |
c2b0d7b5 | 57 | POSIX.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) |