aboutsummaryrefslogtreecommitdiff
path: root/src/locale/strtod_l.c
blob: 61a13435c6c75bb22ad7e8783ecd489ad0462e4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#define _GNU_SOURCE
#include <stdlib.h>
#include <locale.h>

float strtof_l(const char *restrict s, char **restrict p, locale_t l)
{
	return strtof(s, p);
}

double strtod_l(const char *restrict s, char **restrict p, locale_t l)
{
	return strtod(s, p);
}

long double strtold_l(const char *restrict s, char **restrict p, locale_t l)
{
	return strtold(s, p);
}

weak_alias(strtof_l, __strtof_l);
weak_alias(strtod_l, __strtod_l);
weak_alias(strtold_l, __strtold_l);


#ifdef TEST
int
main(void) {
	return 0;
}
#endif