]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/wcscspn.3
dist.mk, All pages: .TH: Generate date at 'make dist'
[thirdparty/man-pages.git] / man3 / wcscspn.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
e4a74ca8 3.\" SPDX-License-Identifier: GPL-2.0-or-later
fea681da
MK
4.\"
5.\" References consulted:
6.\" GNU glibc-2 source code and manual
7.\" Dinkumware C library reference http://www.dinkumware.com/
008f1ecc 8.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
fea681da
MK
9.\" ISO/IEC 9899:1999
10.\"
ab47278f 11.TH WCSCSPN 3 (date) "Linux man-pages (unreleased)"
fea681da
MK
12.SH NAME
13wcscspn \- search a wide-character string for any of a set of wide characters
883aa89b
AC
14.SH LIBRARY
15Standard C library
8fc3b2cf 16.RI ( libc ", " \-lc )
fea681da
MK
17.SH SYNOPSIS
18.nf
19.B #include <wchar.h>
68e4db0a 20.PP
fea681da
MK
21.BI "size_t wcscspn(const wchar_t *" wcs ", const wchar_t *" reject );
22.fi
23.SH DESCRIPTION
60a90ecd
MK
24The
25.BR wcscspn ()
26function is the wide-character equivalent
27of the
28.BR strcspn (3)
29function.
35cfd378
MK
30It determines the length of the longest initial segment of
31.I wcs
32which consists entirely of wide-characters not listed in
33.IR reject .
c13182ef 34In
fea681da 35other words, it searches for the first occurrence in the wide-character
35cfd378
MK
36string
37.I wcs
38of any of the characters in the wide-character string
39.IR reject .
47297adb 40.SH RETURN VALUE
60a90ecd
MK
41The
42.BR wcscspn ()
43function returns the number of
c13182ef 44wide characters in the longest
35cfd378
MK
45initial segment of
46.I wcs
47which consists entirely of wide-characters not
48listed in
49.IR reject .
c13182ef 50In other words, it returns the position of the first
35cfd378
MK
51occurrence in the wide-character string
52.I wcs
c13182ef 53of any of the characters in
35cfd378
MK
54the wide-character string
55.IR reject ,
56or
1ae6b2c7 57.I wcslen(wcs)
35cfd378 58if there is none.
d32f1802 59.SH ATTRIBUTES
e49c66cb
PH
60For an explanation of the terms used in this section, see
61.BR attributes (7).
c466875e
MK
62.ad l
63.nh
e49c66cb
PH
64.TS
65allbox;
c466875e 66lbx lb lb
e49c66cb
PH
67l l l.
68Interface Attribute Value
69T{
d32f1802 70.BR wcscspn ()
e49c66cb
PH
71T} Thread safety MT-Safe
72.TE
c466875e
MK
73.hy
74.ad
75.sp 1
3113c7f3 76.SH STANDARDS
e4c0766a 77POSIX.1-2001, POSIX.1-2008, C99.
47297adb 78.SH SEE ALSO
fea681da
MK
79.BR strcspn (3),
80.BR wcspbrk (3),
81.BR wcsspn (3)