OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / wcsspn.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
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.
8 .\" %%%LICENSE_END
9 .\"
10 .\" References consulted:
11 .\"   GNU glibc-2 source code and manual
12 .\"   Dinkumware C library reference http://www.dinkumware.com/
13 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
14 .\"   ISO/IEC 9899:1999
15 .\"
16 .TH WCSSPN 3  2013-11-11 "GNU" "Linux Programmer's Manual"
17 .SH NAME
18 wcsspn \- advance in a wide-character string, skipping
19 any of a set of wide characters
20 .SH SYNOPSIS
21 .nf
22 .B #include <wchar.h>
23 .sp
24 .BI "size_t wcsspn(const wchar_t *" wcs ", const wchar_t *" accept );
25 .fi
26 .SH DESCRIPTION
27 The
28 .BR wcsspn ()
29 function is the wide-character equivalent of the
30 .BR strspn (3)
31 function.
32 It determines the length of the longest initial segment of
33 .I wcs
34 which consists entirely of wide-characters listed in
35 .IR accept .
36 In other
37 words, it searches for the first occurrence in the wide-character string
38 .I wcs
39 of a wide-character not contained in the wide-character string
40 .IR accept .
41 .SH RETURN VALUE
42 The
43 .BR wcsspn ()
44 function returns the number of
45 wide characters in the longest
46 initial segment of
47 .I wcs
48 which consists entirely of wide-characters listed
49 in
50 .IR accept .
51 In other words, it returns the position of the first
52 occurrence in the wide-character string
53 .I wcs
54 of a wide-character not
55 contained in the wide-character string
56 .IR accept ,
57 or
58 .I wcslen(wcs)
59 if there is none.
60 .SH ATTRIBUTES
61 .SS Multithreading (see pthreads(7))
62 The
63 .BR wcsspn ()
64 function is thread-safe.
65 .SH CONFORMING TO
66 C99.
67 .SH SEE ALSO
68 .BR strspn (3),
69 .BR wcscspn (3)
70 .SH COLOPHON
71 This page is part of release 3.79 of the Linux
72 .I man-pages
73 project.
74 A description of the project,
75 information about reporting bugs,
76 and the latest version of this page,
77 can be found at
78 \%http://www.kernel.org/doc/man\-pages/.