Files
gnulib/modules/c-strtod
T
Bruno Haible 6fd67ba785 c-strtof, c-strtod, c-strtold: Make multithread-safe.
* lib/c-strtod.c: Include <langinfo.h>, c-ctype.h.
(decimal_point_char): New function, copied from lib/vasnprintf.c.
(C_STRTOD): On platforms that don't have STRTOD_L nor a working
uselocale(), pre-parse the number and call STRTOD after having replaced
the '.' with the locale-dependent decimal point character.
* m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOF, gl_C_STRTOLD): Test for
nl_langinfo().
* modules/c-strtof (Depends-on): Add c-ctype. Remove strdup-posix.
* modules/c-strtod (Depends-on): Likewise.
* modules/c-strtold (Depends-on): Likewise.
2024-03-05 17:10:38 +01:00

31 lines
322 B
Plaintext

Description:
Convert string to double in C locale.
Files:
lib/c-strtod.c
lib/c-strtod.h
m4/c-strtod.m4
m4/intl-thread-locale.m4
Depends-on:
c99
extensions
locale
c-ctype
strtod
configure.ac:
gl_C_STRTOD
Makefile.am:
lib_SOURCES += c-strtod.c
Include:
"c-strtod.h"
License:
GPL
Maintainer:
Paul Eggert, Jim Meyering