| 1 |
#define _GNU_SOURCE |
| 2 |
#include <stdlib.h> |
| 3 |
#include <locale.h> |
| 4 |
|
| 5 |
float strtof_l(const char *restrict s, char **restrict p, locale_t l) |
| 6 |
{ |
| 7 |
return strtof(s, p); |
| 8 |
} |
| 9 |
|
| 10 |
double strtod_l(const char *restrict s, char **restrict p, locale_t l) |
| 11 |
{ |
| 12 |
return strtod(s, p); |
| 13 |
} |
| 14 |
|
| 15 |
long double strtold_l(const char *restrict s, char **restrict p, locale_t l) |
| 16 |
{ |
| 17 |
return strtold(s, p); |
| 18 |
} |
| 19 |
|
| 20 |
weak_alias(strtof_l, __strtof_l); |
| 21 |
weak_alias(strtod_l, __strtod_l); |
| 22 |
weak_alias(strtold_l, __strtold_l); |