]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/wcscspn.3
capabilities.7: Add pivot_root(2) to CAP_SYS_ADMIN list
[thirdparty/man-pages.git] / man3 / wcscspn.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
89e3ffe9 3.\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
fea681da
MK
4.\" This is free documentation; you can redistribute it and/or
5.\" modify it under the terms of the GNU General Public License as
6.\" published by the Free Software Foundation; either version 2 of
7.\" the License, or (at your option) any later version.
fe382ebf 8.\" %%%LICENSE_END
fea681da
MK
9.\"
10.\" References consulted:
11.\" GNU glibc-2 source code and manual
12.\" Dinkumware C library reference http://www.dinkumware.com/
008f1ecc 13.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
fea681da
MK
14.\" ISO/IEC 9899:1999
15.\"
460495ca 16.TH WCSCSPN 3 2015-08-08 "GNU" "Linux Programmer's Manual"
fea681da
MK
17.SH NAME
18wcscspn \- search a wide-character string for any of a set of wide characters
19.SH SYNOPSIS
20.nf
21.B #include <wchar.h>
68e4db0a 22.PP
fea681da
MK
23.BI "size_t wcscspn(const wchar_t *" wcs ", const wchar_t *" reject );
24.fi
25.SH DESCRIPTION
60a90ecd
MK
26The
27.BR wcscspn ()
28function is the wide-character equivalent
29of the
30.BR strcspn (3)
31function.
35cfd378
MK
32It determines the length of the longest initial segment of
33.I wcs
34which consists entirely of wide-characters not listed in
35.IR reject .
c13182ef 36In
fea681da 37other words, it searches for the first occurrence in the wide-character
35cfd378
MK
38string
39.I wcs
40of any of the characters in the wide-character string
41.IR reject .
47297adb 42.SH RETURN VALUE
60a90ecd
MK
43The
44.BR wcscspn ()
45function returns the number of
c13182ef 46wide characters in the longest
35cfd378
MK
47initial segment of
48.I wcs
49which consists entirely of wide-characters not
50listed in
51.IR reject .
c13182ef 52In other words, it returns the position of the first
35cfd378
MK
53occurrence in the wide-character string
54.I wcs
c13182ef 55of any of the characters in
35cfd378
MK
56the wide-character string
57.IR reject ,
58or
59.IR wcslen(wcs)
60if there is none.
d32f1802 61.SH ATTRIBUTES
e49c66cb
PH
62For an explanation of the terms used in this section, see
63.BR attributes (7).
64.TS
65allbox;
66lb lb lb
67l l l.
68Interface Attribute Value
69T{
d32f1802 70.BR wcscspn ()
e49c66cb
PH
71T} Thread safety MT-Safe
72.TE
47297adb 73.SH CONFORMING TO
e4c0766a 74POSIX.1-2001, POSIX.1-2008, C99.
47297adb 75.SH SEE ALSO
fea681da
MK
76.BR strcspn (3),
77.BR wcspbrk (3),
78.BR wcsspn (3)