]>
Commit | Line | Data |
---|---|---|
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 | 32 | strpbrk \- 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 |
40 | The |
41 | .BR strpbrk () | |
42 | function locates the first occurrence in the | |
46d8df8e MK |
43 | string |
44 | .I s | |
45 | of any of the bytes in the string | |
46 | .IR accept . | |
47297adb | 47 | .SH RETURN VALUE |
60a90ecd MK |
48 | The |
49 | .BR strpbrk () | |
a00b7454 | 50 | function returns a pointer to the byte in |
46d8df8e MK |
51 | .I s |
52 | that matches one of the bytes in | |
53 | .IR accept , | |
54 | or NULL | |
a00b7454 | 55 | if no such byte is found. |
99c2f1a2 | 56 | .SH ATTRIBUTES |
5887c9cd PH |
57 | For an explanation of the terms used in this section, see |
58 | .BR attributes (7). | |
59 | .TS | |
60 | allbox; | |
61 | lb lb lb | |
62 | l l l. | |
63 | Interface Attribute Value | |
64 | T{ | |
99c2f1a2 | 65 | .BR strpbrk () |
5887c9cd PH |
66 | T} Thread safety MT-Safe |
67 | .TE | |
47297adb | 68 | .SH CONFORMING TO |
c2b0d7b5 | 69 | POSIX.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) |