Debian Codegraph @

terps/tads/tads3/test/log/sprintf.log

raw
1 Files to build: 5
2 symbol_export _main.t -> _main.t3s
3 symbol_export sprintf.t -> sprintf.t3s
4 compile _main.t -> _main.t3o
5 compile sprintf.t -> sprintf.t3o
6 link -> sprintf.t3
7
8 (T3VM) Memory blocks still in use:
9
10 Total blocks in use: 0
11 Hello!
12 -> Hello!
13
14 Percent %% test!
15 -> Percent % test!
16
17 Integers: decimal=%d, unsigned=%u, octal=%o, hex=%x, HEX=%X, binary=%b
18 -> Integers: decimal=-123, unsigned=4294966840, octal=3344, hex=55aa66bb,
19 HEX=88CC99DD, binary=1111000011110000
20
21 Unsigned: u=%u, u=%u, hex=%x, hex=%x, octal=%o, octal=%o
22 -> Unsigned: u=4294954951, u=-12345, hex=ffffff01, hex=-ff, octal=37777776001,
23 octal=-1777
24
25 Plus signs: %+d, %+d, %+d, %+d
26 -> Plus signs: +123, -456, +7890, +0
27
28 Plus w/space: % d, % d, % d, % d
29 -> Plus w/space: 123, -456, 7890, 0
30
31 # format: %#x, %#x, %#X, %#X, %#o, %#o
32 -> # format: 0, 0x123abc, 0, 0X345DEF, 0, 07654
33
34 Roman numerals I: %r, %R, %r, %R, %r, %R
35 -> Roman numerals I: 0, -5, c, CXI, mmmdccclxxxviii, MMMMCMXCIX
36
37 Roman numerals II: %r, %R, %r, %R, %r, %R
38 -> Roman numerals II: i, 0, cxxiii, DCLXXIX, dxvii, 9999
39
40 Integers with field widths: [%8d] [%_ 8d] [%_*8d] [%016d] [%_*8x]
41 -> Integers with field widths: [ 100] [ 200] [***-1234]
42 [0000000000004567] [*****400]
43
44 Field widths too small: [%4d] [%4d] [%4d] [%4x]
45 -> Field widths too small: [1234] [-123] [12345] [abcde]
46
47 Left align: [%-5d] [%-5d] [%-5d] [%-5d] [%_*-10d] [%- 5d]
48 -> Left align: [123 ] [-1234] [12345] [123456] [87654*****] [ 987 ]
49
50 Integers with precisions: [%+.8d] [%.20d] [%.8x] [%.8o]
51 -> Integers with precisions: [+00000123] [-00000001234567890987] [00456abc]
52 [00334455]
53
54 Grouping: [%,d] [%,d] [%,d] [%,d] [%,8d] [%,10d] [%,10d]
55 -> Grouping: [1] [12] [123] [1,234] [1,234,567] [ 1,234,567] [-1,234,567]
56
57 Positionals: %[3]d, %[2]d, %d, %d, %[1]d, %d
58 -> Positionals: 3, 2, 1, 2, 1, 3
59
60 Positionals with widths: [%[2]6d], [%[1]06d]
61 -> Positionals with widths: [ 200], [000100]
62
63 Strings as integers: %d, %x, %d
64 -> Strings as integers: 12345, ffff, 988
65
66 BigNumbers as integers: %d, %d, %d, %d, %d, %020x
67 -> BigNumbers as integers: 0, 1, 2, 2, 9111222333, 000fffffffffffffffff
68
69 Strings: [%s] [%s] [%s] [%s] [%s]
70 -> Strings: [This is a test string!] [100] [123.4567] [] []
71
72 Strings with widths: [%8s] [%8s] [%8s]
73 -> Strings with widths: [ Short] [Too long for the limit] [Right on]
74
75 Strings w/widths, left-aligned: [%-8s] [%-8s] [%-8s]
76 -> Strings w/widths, left-aligned: [Short ] [Too long for the limit] [Right
77 on]
78
79 Strings with limits: [%8.8s] [%8.8s] [%8.8s]
80 -> Strings with limits: [ Short] [Too long] [Perfect!]
81
82 Chars: [%c] [%c] [%c] [%c]
83 -> Chars: [A] [h] [a] [ ]
84
85 f format: %f, %f, %f, %f
86 -> f format: 1234.000000, 321.123457, 3456789.000000, 0.000000
87
88 f with precision: %.10f, %.20f, %.3f
89 -> f with precision: 1234.5678909877, 8899.00112233445566778900, 789.877
90
91 f with zero precision: %.0f, %.0f, %.f
92 -> f with zero precision: 1235, 8899, 790
93
94 f with zero precision and #: %#.0f, %#.0f, %#.f
95 -> f with zero precision and #: 1235., 8899., 790.
96
97 e format: %e, %e, %e, %e
98 -> e format: 1.230000e+002, -9.994448e+008, 1.234568e+006, 1.000000e+006
99
100 E format: %E, %E, %E
101 -> E format: 4.560000E-003, 1.876543E+020, -3.141593E-4567
102
103 e with precision: %.10e, %.3e, %.6e
104 -> e with precision: 1.2345000000e-002, 7.767e-001, 7.778890e+002
105
106 e with zero precision: %.0e, %.e, %.e
107 -> e with zero precision: 1e-002, 8e-001, 8e+002
108
109 e with zero precision and #: %#.0e, %#.e, %#.e
110 -> e with zero precision and #: 1.e-002, 8.e-001, 8.e+002
111
112 Floats with signs: %+f, %+f, %+f
113 -> Floats with signs: +1234.567800, -9876.543210, +0.000000
114
115 Floats with spaces: % f, % f, % f
116 -> Floats with spaces: 1234.567800, -9876.543210, 0.000000
117
118 Floats with widths: [%10f] [%10f]
119 -> Floats with widths: [10203040.000000] [ 0.246814]
120
121 g format: %g, %g, %g, %g, %g
122 -> g format: 100, 1.23457e+008, -2.34568e+007, 0.000123457, 0.000123457
123
124 G format: %G, %G, %G
125 -> G format: 0.00012345, 1.2345E-005, 1.2345E-006
126
127 More g: %g, %g, %g, %g
128 -> More g: 1234, 12345, 123456, 1.23457e+006
129
130 g with precision: %.3g, %.8g, %.5g
131 -> g with precision: 12.8, 123.456, 1.2346e+005
132
133 #g: %#g, %#g, %#g, %#g, %#g, %#g
134 -> #g: 1234.00, 12345.0, 123456., 1.23457e+006, 123000., 1.23000e+022
135
136
137 (T3VM) Memory blocks still in use:
138
139 Total blocks in use: 0