Debian Codegraph @

upstream/debian-unstable/man3/wcspbrk.3

raw
1 '\" t
2 .\" Copyright, Bruno Haible <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\"
7 .TH wcspbrk 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 wcspbrk \- search a wide-character string for any of a set of wide characters
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .B #include <wchar.h>
16 .P
17 .BI "wchar_t *wcspbrk(const wchar_t *" wcs ", const wchar_t *" accept );
18 .fi
19 .SH DESCRIPTION
20 The
21 .BR wcspbrk ()
22 function is the wide-character equivalent
23 of the
24 .BR strpbrk (3)
25 function.
26 It searches for the first occurrence in the wide-character
27 string pointed to by
28 .I wcs
29 of any of the
30 characters in the wide-character
31 string pointed to by
32 .IR accept .
33 .SH RETURN VALUE
34 The
35 .BR wcspbrk ()
36 function returns a pointer to the first occurrence in
37 .I wcs
38 of any of the characters listed in
39 .IR accept .
40 If
41 .I wcs
42 contains none of these characters, NULL is returned.
43 .SH ATTRIBUTES
44 For an explanation of the terms used in this section, see
45 .BR attributes (7).
46 .TS
47 allbox;
48 lbx lb lb
49 l l l.
50 Interface Attribute Value
51 T{
52 .na
53 .nh
54 .BR wcspbrk ()
55 T} Thread safety MT-Safe
56 .TE
57 .SH STANDARDS
58 C11, POSIX.1-2008.
59 .SH HISTORY
60 POSIX.1-2001, C99.
61 .SH SEE ALSO
62 .BR strpbrk (3),
63 .BR wcschr (3),
64 .BR wcscspn (3)