blob: a337ff858b5ac52d0d1c1edc5cb3399789c18f54 (
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
31
32
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST
int
libfonts_parse_double__(double *outp, const char *value)
{
char *end;
int saved_errno = errno;
errno = 0;
*outp = strtod(value, &end);
if (errno || *end || isblank(*value)) {
errno = saved_errno;
return 0;
}
errno = saved_errno;
return 1;
}
#else
int
main(void)
{
return 0; /* XXX add test */
}
#endif
|