[libc-commits] [libc] [libc] Implement locale variants for 'stdlib.h' functions (PR #105718)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Fri Aug 30 14:59:03 PDT 2024


petrhosek wrote:

@jhuber6 I reproduced this locally and I see the following declarations in the generated `stdlib.h`:
```
double strtod(const char *__restrict, char * *__restrict, locale_t) __NOEXCEPT;
float strtof(const char *__restrict, char * *__restrict, locale_t) __NOEXCEPT;
long strtol(const char *__restrict, char * *__restrict, int, locale_t) __NOEXCEPT;
long double strtold(const char *__restrict, char * *__restrict, locale_t) __NOEXCEPT;
long long strtoll(const char *__restrict, char * *__restrict, int, locale_t) __NOEXCEPT;
unsigned long strtoul(const char *__restrict, char * *__restrict, int, locale_t) __NOEXCEPT;
unsigned long long strtoull(const char *__restrict, char * *__restrict, int, locale_t) __NOEXCEPT;
```
#106806 is the fix.

https://github.com/llvm/llvm-project/pull/105718


More information about the libc-commits mailing list