strtod_l(3)

strtod_l3

Convert ascii string to floating point

Usage

#include <stdlib.h>

#include <xlocale.h>

double

strtod_l(const char * restrict nptr, char ** restrict endptr, locale_t loc);

float

strtof_l(const char * restrict nptr, char ** restrict endptr, locale_t loc);

long double

strtold_l(const char * restrict nptr, char ** restrict endptr, locale_t loc);

Library

Standard C Library (libc, -lc)

Overview

The strtod_l(), strtof_l(), and strtold_l() functions are extended locale versions of the strtod(), strtof(), and strtold() functions, respectively. Refer to their manual pages for details. Also, see xlocale(3) for more information about extended locales.

Releases

Unchanged in 135 releases since Mac OS X 10.4.

  1. 10.4–26.5

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