wcstod(3)

wcstod3

Convert string to float, double, or long double

Usage

#include <wchar.h>

double

wcstod(const wchar_t *restrict nptr, wchar_t **restrict endptr);

float

wcstof(const wchar_t *restrict nptr, wchar_t **restrict endptr);

long double

wcstold(const wchar_t *restrict nptr, wchar_t **restrict endptr);

Library

Standard C Library (libc, -lc)

Overview

The wcstof(), wcstod(), and wcstold() functions are the wide-character versions of the strtof(), strtod(), and strtold() functions. Refer to strtod(3) for details.

Extended locale versions of these functions are documented in wcstod_l(3). See xlocale(3) for more information.

Releases

145 releases since Mac OS X 10.3; the text changed 2 times.

  1. 10.3–10.3.9
  2. 10.4–10.4.11
  3. 10.5–26.5

Standards

The wcstof(), wcstod() and wcstold() functions conform to ISO/IEC 9899:1999 (“ISO C99”).

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.