blob: d56c268f3e5b5a53bcd2541496b39a9072f19000 (
plain)
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
|
#if 0
# define TGSOURCE "nan.c"
#include "_tgmath.h"
#include <math.h>
#include <string.h>
#include <stdlib.h>
#define strtodf strtof
#define strtodl strtold
TYPE TGFN(nan)(const char *tagp)
{
if (tagp) {
char ncharseq[strlen(tagp) + 6];
strcpy(ncharseq, "NAN(");
strcat(ncharseq, tagp);
strcat(ncharseq, ")");
return TGFN(strtod)(ncharseq, (char**)NULL);
}
return TGFN(strtod)("NAN", (char**)NULL);
}
/*
STDC(199901)
LINK(m)
*/
#endif
|