repo.or.cz
/
libc-test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add test for strftime
[libc-test.git]
/
src
/
functional
/
strtod_long.c
blob
fa5ac17f487d4cb91584bf64b54042388fb448a9
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <string.h>
4
#include
"test.h"
5
6
int
main
(
void
)
7
{
8
double
x
,
want
=
.1111111111111111111111
;
9
char
buf
[
40000
];
10
11
memset
(
buf
,
'1'
,
sizeof
buf
);
12
buf
[
0
] =
'.'
;
13
buf
[
sizeof
buf
-
1
] =
0
;
14
15
if
((
x
=
strtod
(
buf
,
0
)) !=
want
)
16
t_error
(
"strtod(.11[...]1) got %a want %a
\n
"
,
x
,
want
);
17
return
t_status
;
18
}
19