STRTOD_L(3) Library Functions Manual STRTOD_L(3)

strtod_l, strtof_l, strtold_lconvert ASCII string to floating point

Standard C Library (libc, -lc)

#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);

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

strtod(3), xlocale(3)

March 11, 2005 macOS 15.0