2016-05-19 14:15:22 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include "test.h"
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
double x, want = .1111111111111111111111;
|
|
|
|
char buf[40000];
|
|
|
|
|
|
|
|
memset(buf, '1', sizeof buf);
|
|
|
|
buf[0] = '.';
|
|
|
|
buf[sizeof buf - 1] = 0;
|
|
|
|
|
|
|
|
if ((x=strtod(buf, 0)) != want)
|
2016-06-05 19:15:52 +02:00
|
|
|
t_error("strtod(.11[...]1) got %.18f want %.18f\n", x, want);
|
2016-05-19 14:15:22 +02:00
|
|
|
|
|
|
|
printf("%s finished\n", __FILE__);
|
|
|
|
return t_status;
|
|
|
|
}
|
|
|
|
|