OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / strpbrk.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
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.
12 .\"
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.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
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)
30 .TH STRPBRK 3  2014-02-25 "" "Linux Programmer's Manual"
31 .SH NAME
32 strpbrk \- search a string for any of a set of bytes
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
40 The
41 .BR strpbrk ()
42 function locates the first occurrence in the
43 string
44 .I s
45 of any of the bytes in the string
46 .IR accept .
47 .SH RETURN VALUE
48 The
49 .BR strpbrk ()
50 function returns a pointer to the byte in
51 .I s
52 that matches one of the bytes in
53 .IR accept ,
54 or NULL
55 if no such byte is found.
56 .SH ATTRIBUTES
57 .SS Multithreading (see pthreads(7))
58 The
59 .BR strpbrk ()
60 function is thread-safe.
61 .SH CONFORMING TO
62 SVr4, 4.3BSD, C89, C99.
63 .SH SEE ALSO
64 .BR index (3),
65 .BR memchr (3),
66 .BR rindex (3),
67 .BR strchr (3),
68 .BR string (3),
69 .BR strsep (3),
70 .BR strspn (3),
71 .BR strstr (3),
72 .BR strtok (3),
73 .BR wcspbrk (3)
74 .SH COLOPHON
75 This page is part of release 3.79 of the Linux
76 .I man-pages
77 project.
78 A description of the project,
79 information about reporting bugs,
80 and the latest version of this page,
81 can be found at
82 \%http://www.kernel.org/doc/man\-pages/.