OSDN Git Service

0f94e07dd271370298b76ddc4fe3da71f971e77f
[linuxjm/LDP_man-pages.git] / original / man3 / wcstoimax.3
1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
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 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, see
21 .\" <http://www.gnu.org/licenses/>.
22 .\" %%%LICENSE_END
23 .\"
24 .TH WCSTOIMAX 3 2014-01-22 "" "Linux Programmer's Manual"
25 .SH NAME
26 wcstoimax, wcstoumax \- convert wide-character string to integer
27 .SH SYNOPSIS
28 .nf
29 .B #include <stddef.h>
30 .br
31 .B #include <inttypes.h>
32 .sp
33 .BI "intmax_t wcstoimax(const wchar_t *" nptr ", wchar_t **" endptr \
34 ", int " base );
35 .br
36 .BI "uintmax_t wcstoumax(const wchar_t *" nptr ", wchar_t **" endptr \
37 ", int " base );
38 .fi
39 .SH DESCRIPTION
40 These functions are just like
41 .BR wcstol (3)
42 and
43 .BR wcstoul (3),
44 except that they return a value of type
45 .I intmax_t
46 and
47 .IR uintmax_t ,
48 respectively.
49 .SH ATTRIBUTES
50 .SS Multithreading (see pthreads(7))
51 The
52 .BR wcstoimax ()
53 and
54 .BR wcstoumax ()
55 functions are thread-safe with exceptions.
56 These functions can be safely used in multithreaded applications,
57 as long as
58 .BR setlocale (3)
59 is not called to change the locale during their execution.
60 .SH CONFORMING TO
61 C99.
62 .SH SEE ALSO
63 .BR imaxabs (3),
64 .BR imaxdiv (3),
65 .BR strtoimax (3),
66 .BR strtoumax (3),
67 .\" FIXME . the pages referred to by the following xrefs are not yet written
68 .BR wcstol (3),
69 .BR wcstoul (3)
70 .SH COLOPHON
71 This page is part of release 3.67 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/.