summaryrefslogtreecommitdiffstats
path: root/src/util/vbuf_print_test.in
blob: 5ed13dc1f8f33c5f9f70440d132fff5cf1f6580e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Check width and precision.
%-30.20s 123456789012345678901234567890
%30.20s 123456789012345678901234567890

%d 123456789
%+10d 123456789
%-10d 123456789
%10d 123456789
%10.10d 123456789

%+ld 123456789
%-ld 123456789
%ld 123456789
%10ld 123456789
%10.10ld 123456789

%+lo 123456789
%-lo 123456789
%lo 123456789
%10lo 123456789
%10.10lo 123456789

%f 1e308
%.100f 1e308
%g 1e308
%.309g 1e308

%s foo
%0s foo
%.0s foo
%10s foo
%+10s foo
%-10s foo