Add missing libc_hidden_weak to stub if_nameindex, if_freenameindex.
[platform/upstream/glibc.git] / manual / stdio-fp.c
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 }