]> git.saurik.com Git - apple/libc.git/blame - locale/FreeBSD/wcstol.3
Libc-1082.50.1.tar.gz
[apple/libc.git] / locale / FreeBSD / wcstol.3
CommitLineData
9385eb3d
A
1.\" Copyright (c) 2002 Tim J. Robbins
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\"
13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: src/lib/libc/locale/wcstol.3,v 1.4 2002/11/29 17:35:09 ru Exp $
26.\"
27.Dd September 7, 2002
28.Dt WCSTOL 3
29.Os
30.Sh NAME
ad3c9f2a
A
31.Nm wcstoimax ,
32.Nm wcstol ,
33.Nm wcstoll ,
34.Nm wcstoul ,
35.Nm wcstoull ,
36.Nm wcstoumax
9385eb3d 37.Nd "convert a wide character string value to a"
ad3c9f2a 38.Vt intmax_t ,
9385eb3d 39.Vt long ,
9385eb3d 40.Vt "long long" ,
ad3c9f2a 41.Vt "unsigned long" ,
9385eb3d 42.Vt "unsigned long long" ,
9385eb3d
A
43or
44.Vt uintmax_t
45integer
46.Sh LIBRARY
47.Lb libc
48.Sh SYNOPSIS
49.In wchar.h
50.Ft long
ad3c9f2a
A
51.Fo wcstol
52.Fa "const wchar_t *restrict nptr"
53.Fa "wchar_t **restrict endptr"
54.Fa "int base"
55.Fc
9385eb3d 56.Ft "long long"
ad3c9f2a
A
57.Fo wcstoll
58.Fa "const wchar_t *restrict nptr"
59.Fa "wchar_t **restrict endptr"
60.Fa "int base"
61.Fc
62.Ft "unsigned long"
63.Fo wcstoul
64.Fa "const wchar_t *restrict nptr"
65.Fa "wchar_t **restrict endptr"
66.Fa "int base"
67.Fc
9385eb3d 68.Ft "unsigned long long"
ad3c9f2a
A
69.Fo wcstoull
70.Fa "const wchar_t *restrict nptr"
71.Fa "wchar_t **restrict endptr"
72.Fa "int base"
73.Fc
74.In stddef.h
9385eb3d
A
75.In inttypes.h
76.Ft intmax_t
ad3c9f2a
A
77.Fo wcstoimax
78.Fa "const wchar_t *restrict nptr"
79.Fa "wchar_t **restrict endptr"
80.Fa "int base"
81.Fc
9385eb3d 82.Ft uintmax_t
ad3c9f2a
A
83.Fo wcstoumax
84.Fa "const wchar_t *restrict nptr"
85.Fa "wchar_t **restrict endptr"
86.Fa "int base"
87.Fc
9385eb3d
A
88.Sh DESCRIPTION
89The
90.Fn wcstol ,
91.Fn wcstoul ,
92.Fn wcstoll ,
93.Fn wcstoull ,
ad3c9f2a 94.Fn wcstoimax ,
9385eb3d
A
95and
96.Fn wcstoumax
97functions are wide-character versions of the
98.Fn strtol ,
99.Fn strtoul ,
100.Fn strtoll ,
101.Fn strtoull ,
ad3c9f2a 102.Fn strtoimax ,
9385eb3d
A
103and
104.Fn strtoumax
105functions, respectively.
106Refer to their manual pages (for example
107.Xr strtol 3 )
108for details.
ad3c9f2a
A
109.Pp
110Extended locale versions of these functions are documented in
111.Xr wcstol_l 3 .
112See
113.Xr xlocale 3
114for more information.
115.Sh LEGACY SYNOPSIS
116.Fd #include <stddef.h>
117.Fd #include <inttypes.h>
118.Pp
119The include file
120.In stddef.h
121is necessary for the
122.Fn wcstoimax
123and
124.Fn wcstoumax
125functions.
9385eb3d
A
126.Sh SEE ALSO
127.Xr strtol 3 ,
ad3c9f2a
A
128.Xr strtoul 3 ,
129.Xr wcstol_l 3 ,
130.Xr compat 5
9385eb3d
A
131.Sh STANDARDS
132The
133.Fn wcstol ,
134.Fn wcstoul ,
135.Fn wcstoll ,
136.Fn wcstoull ,
ad3c9f2a 137.Fn wcstoimax ,
9385eb3d
A
138and
139.Fn wcstoumax
140functions conform to
141.St -isoC-99 .