]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/wcsspn.3
Removed trailing white space at end of lines
[thirdparty/man-pages.git] / man3 / wcsspn.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 WCSSPN 3 2015-08-08 "GNU" "Linux Programmer's Manual"
fea681da 17.SH NAME
c13182ef 18wcsspn \- advance in a wide-character string, skipping
35478399 19any of a set of wide characters
fea681da
MK
20.SH SYNOPSIS
21.nf
22.B #include <wchar.h>
68e4db0a 23.PP
401c0b8c 24.BI "size_t wcsspn(const wchar_t *" wcs ", const wchar_t *" accept );
fea681da
MK
25.fi
26.SH DESCRIPTION
60a90ecd
MK
27The
28.BR wcsspn ()
29function is the wide-character equivalent of the
30.BR strspn (3)
31function.
35cfd378
MK
32It determines the length of the longest initial segment of
33.I wcs
34which consists entirely of wide-characters listed in
35.IR accept .
35478399 36In other
fea681da 37words, it searches for the first occurrence in the wide-character string
35cfd378
MK
38.I wcs
39of a wide-character not contained in the wide-character string
40.IR accept .
47297adb 41.SH RETURN VALUE
60a90ecd
MK
42The
43.BR wcsspn ()
44function returns the number of
35478399 45wide characters in the longest
35cfd378
MK
46initial segment of
47.I wcs
48which consists entirely of wide-characters listed
49in
50.IR accept .
35478399 51In other words, it returns the position of the first
35cfd378
MK
52occurrence in the wide-character string
53.I wcs
54of a wide-character not
55contained in the wide-character string
56.IR accept ,
57or
58.I wcslen(wcs)
fea681da 59if there is none.
a958468a 60.SH ATTRIBUTES
aa82443d
PH
61For an explanation of the terms used in this section, see
62.BR attributes (7).
63.TS
64allbox;
65lb lb lb
66l l l.
67Interface Attribute Value
68T{
a958468a 69.BR wcsspn ()
aa82443d
PH
70T} Thread safety MT-Safe
71.TE
47297adb 72.SH CONFORMING TO
7706c03f 73POSIX.1-2001, POSIX.1-2008, C99.
47297adb 74.SH SEE ALSO
fea681da
MK
75.BR strspn (3),
76.BR wcscspn (3)