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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
...testing value 0
|%f| printf = |0.000000| wrote 10 chars
|%f| debuglog = |0.000000| wrote 10 chars
|%2f| printf = |0.000000| wrote 10 chars
|%2f| debuglog = |0.000000| wrote 10 chars
|%9f| printf = | 0.000000| wrote 11 chars
|%9f| debuglog = | 0.000000| wrote 11 chars
|%8.0f| printf = | 0| wrote 10 chars
|%8.0f| debuglog = | 0| wrote 10 chars
|%8.1f| printf = | 0.0| wrote 10 chars
|%8.1f| debuglog = | 0.0| wrote 10 chars
|%8.2f| printf = | 0.00| wrote 10 chars
|%8.2f| debuglog = | 0.00| wrote 10 chars
...testing value 3.7 (with rounding)
|%f| printf = |3.700000| wrote 10 chars
|%f| debuglog = |3.700000| wrote 10 chars
|%4f| printf = |3.700000| wrote 10 chars
|%4f| debuglog = |3.700000| wrote 10 chars
|%9f| printf = | 3.700000| wrote 11 chars
|%9f| debuglog = | 3.700000| wrote 11 chars
|%4.0f| printf = | 4| wrote 6 chars
|%4.0f| debuglog = | 4| wrote 6 chars
|%4.1f| printf = | 3.7| wrote 6 chars
|%4.1f| debuglog = | 3.7| wrote 6 chars
|%4.2f| printf = |3.70| wrote 6 chars
|%4.2f| debuglog = |3.70| wrote 6 chars
...testing value 123.01
|%f| printf = |123.010000| wrote 12 chars
|%f| debuglog = |123.010000| wrote 12 chars
|%4f| printf = |123.010000| wrote 12 chars
|%4f| debuglog = |123.010000| wrote 12 chars
|%9f| printf = |123.010000| wrote 12 chars
|%9f| debuglog = |123.010000| wrote 12 chars
|%8.0f| printf = | 123| wrote 10 chars
|%8.0f| debuglog = | 123| wrote 10 chars
|%8.1f| printf = | 123.0| wrote 10 chars
|%8.1f| debuglog = | 123.0| wrote 10 chars
|%8.2f| printf = | 123.01| wrote 10 chars
|%8.2f| debuglog = | 123.01| wrote 10 chars
|%8.3f| printf = | 123.010| wrote 10 chars
|%8.3f| debuglog = | 123.010| wrote 10 chars
...testing value 3.0019 (with rounding)
|%f| printf = |3.001900| wrote 10 chars
|%f| debuglog = |3.001900| wrote 10 chars
|%10f| printf = | 3.001900| wrote 12 chars
|%10f| debuglog = | 3.001900| wrote 12 chars
|%10.0f| printf = | 3| wrote 12 chars
|%10.0f| debuglog = | 3| wrote 12 chars
|%10.3f| printf = | 3.002| wrote 12 chars
|%10.3f| debuglog = | 3.002| wrote 12 chars
|%10.4f| printf = | 3.0019| wrote 12 chars
|%10.4f| debuglog = | 3.0019| wrote 12 chars
|%.4f| printf = |3.0019| wrote 8 chars
|%.4f| debuglog = |3.0019| wrote 8 chars
|%.9f| printf = |3.001900000| wrote 13 chars
|%.9f| debuglog = |3.001900000| wrote 13 chars
...testing value -123.456 (with rounding)
|%f| printf = |-123.456000| wrote 13 chars
|%f| debuglog = |-123.456000| wrote 13 chars
|%10f| printf = |-123.456000| wrote 13 chars
|%10f| debuglog = |-123.456000| wrote 13 chars
|%10.0f| printf = | -123| wrote 12 chars
|%10.0f| debuglog = | -123| wrote 12 chars
|%10.1f| printf = | -123.5| wrote 12 chars
|%10.1f| debuglog = | -123.5| wrote 12 chars
|%10.2f| printf = | -123.46| wrote 12 chars
|%10.2f| debuglog = | -123.46| wrote 12 chars
|%10.3f| printf = | -123.456| wrote 12 chars
|%10.3f| debuglog = | -123.456| wrote 12 chars
|%10.4f| printf = | -123.4560| wrote 12 chars
|%10.4f| debuglog = | -123.4560| wrote 12 chars
|%10.5f| printf = |-123.45600| wrote 12 chars
|%10.5f| debuglog = |-123.45600| wrote 12 chars
|%.4f| printf = |-123.4560| wrote 11 chars
|%.4f| debuglog = |-123.4560| wrote 11 chars
...testing value = -123.456 width = '*'
|%*f| printf = |-123.456000| wrote 13 chars
|%*f| debuglog = |-123.456000| wrote 13 chars
|%*f| printf = |-123.456000| wrote 13 chars
|%*f| debuglog = |-123.456000| wrote 13 chars
|%*f.1| printf = |-123.456000.1| wrote 15 chars
|%*f.1| debuglog = |-123.456000.1| wrote 15 chars
...testing precision = '*'
|%.*f| printf = |-123.4560000000| wrote 17 chars
|%.*f| debuglog = |-123.4560000000| wrote 17 chars
|%.*f| printf = |-123.46| wrote 9 chars
|%.*f| debuglog = |-123.46| wrote 9 chars
|%10.*f| printf = | -123.46| wrote 12 chars
|%10.*f| debuglog = | -123.46| wrote 12 chars
...testing width/precision = '*'
|%*.*f| printf = | -123.45600| wrote 22 chars
|%*.*f| debuglog = | -123.45600| wrote 22 chars
|%*.*f| printf = |-123.4560| wrote 11 chars
|%*.*f| debuglog = |-123.4560| wrote 11 chars
...testing left justification
|%10f| printf = | 3.141500| wrote 12 chars
|%10f| debuglog = | 3.141500| wrote 12 chars
|%-10f| printf = |3.141500 | wrote 12 chars
|%-10f| debuglog = |3.141500 | wrote 12 chars
...testing strings
|%s| printf = |abcd| wrote 6 chars
|%s| debuglog = |abcd| wrote 6 chars
|%9s| printf = | abcd| wrote 11 chars
|%9s| debuglog = | abcd| wrote 11 chars
|%-9s| printf = |abcd | wrote 11 chars
|%-9s| debuglog = |abcd | wrote 11 chars
|%*s| printf = | abcd| wrote 8 chars
|%*s| debuglog = | abcd| wrote 8 chars
...testing integers
|%lld| printf = |-1004005| wrote 10 chars
|%lld| debuglog = |-1004005| wrote 10 chars
|%15lld| printf = | -1004005| wrote 17 chars
|%15lld| debuglog = | -1004005| wrote 17 chars
|%-15lld| printf = |-1004005 | wrote 17 chars
|%-15lld| debuglog = |-1004005 | wrote 17 chars
|%100lld| printf = | -1004005| wrote 102 chars
|%100lld| debuglog = | -1004005| wrote 102 chars
|%*lld| printf = | -1004005| wrote 15 chars
|%*lld| debuglog = | -1004005| wrote 15 chars
|%3.0f| printf = | 1| wrote 5 chars
|%3.0f| debuglog = | 1| wrote 5 chars
|%3.1f| printf = |1.0| wrote 5 chars
|%3.1f| debuglog = |1.0| wrote 5 chars
|%3.2f| printf = |1.00| wrote 6 chars
|%3.2f| debuglog = |1.00| wrote 6 chars
|%3.3f| printf = |0.997| wrote 7 chars
|%3.3f| debuglog = |0.997| wrote 7 chars
|%3.4f| printf = |0.9969| wrote 8 chars
|%3.4f| debuglog = |0.9969| wrote 8 chars
|%3.5f| printf = |0.99685| wrote 9 chars
|%3.5f| debuglog = |0.99685| wrote 9 chars
|