repo.or.cz
/
glibc
/
history.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
g++ still cannot handled [restrict].
[glibc/history.git]
/
manual
/
stdio-fp.c
blob
db9480782dc12a34d6a959f94022d6b2788b5e16
1
/* This program is to generate one of the examples in stdio.texi. */
2
3
#include <stdio.h>
4
5
6
static void
7
print
(
double
v
)
8
{
9
printf
(
"|%13.4a|%13.4f|%13.4e|%13.4g|
\n
"
,
v
,
v
,
v
,
v
);
10
}
11
12
13
int
14
main
(
void
)
15
{
16
print
(
0.0
);
17
print
(
0.5
);
18
print
(
1.0
);
19
print
(-
1.0
);
20
print
(
100.0
);
21
print
(
1000.0
);
22
print
(
10000.0
);
23
print
(
12345.0
);
24
print
(
100000.0
);
25
print
(
123456.0
);
26
27
return
0
;
28
}