xref: /dragonfly/lib/libc/locale/wcstod.3 (revision c69bf40f)
1.\" Copyright (c) 2002, 2003 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: head/lib/libc/locale/wcstod.3 115225 2003-05-22 13:02:28Z ru $
26.\"
27.Dd December 25, 2013
28.Dt WCSTOD 3
29.Os
30.Sh NAME
31.Nm wcstof ,
32.Nm wcstof_l ,
33.Nm wcstod ,
34.Nm wcstod_l ,
35.Nm wcstold ,
36.Nm wcstold_l
37.Nd convert string to
38.Vt float , double
39or
40.Vt "long double"
41.Sh LIBRARY
42.Lb libc
43.Sh SYNOPSIS
44.In wchar.h
45.Ft float
46.Fn wcstof "const wchar_t * restrict nptr" "wchar_t ** restrict endptr"
47.Ft "long double"
48.Fn wcstold "const wchar_t * restrict nptr" "wchar_t ** restrict endptr"
49.Ft double
50.Fn wcstod "const wchar_t * restrict nptr" "wchar_t ** restrict endptr"
51.In xlocale.h
52.Ft float
53.Fn wcstof_l "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "locale_t locale"
54.Ft "long double"
55.Fn wcstold_l "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "locale_t locale"
56.Ft double
57.Fn wcstod_l "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "locale_t locale"
58.Sh DESCRIPTION
59The
60.Fn wcstof ,
61.Fn wcstof_l ,
62.Fn wcstod ,
63.Fn wcstod_l ,
64.Fn wcstold ,
65and
66.Fn wcstold_l
67functions are the wide-character versions of the
68.Fn strtof ,
69.Fn strtof_l ,
70.Fn strtod ,
71.Fn strtod_l ,
72.Fn strtold ,
73and
74.Fn strtold_l
75functions.
76Refer to
77.Xr strtod 3
78for details.
79.Sh SEE ALSO
80.Xr strtod 3 ,
81.Xr wcstol 3 ,
82.Xr xlocale 3
83.Sh STANDARDS
84The
85.Fn wcstof ,
86.Fn wcstod
87and
88.Fn wcstold
89functions conform to
90.St -isoC-99 .
91