mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-20 05:42:34 +03:00
227eb8887f
git-svn-id: svn://kolibrios.org@6441 a494cfbc-eb01-0410-851d-a64ba20cac60
22 lines
385 B
C
22 lines
385 B
C
#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)
|
|
t_error("strtod(.11[...]1) got %.18f want %.18f\n", x, want);
|
|
|
|
printf("%s finished\n", __FILE__);
|
|
return t_status;
|
|
}
|
|
|