1 | *** BEGIN OF TEST SPPRINTK *** |
---|
2 | This is a test of putk |
---|
3 | |
---|
4 | bad format -- %q in parentheses (%q) |
---|
5 | bad format -- %lq in parentheses (%lq) |
---|
6 | %o of 16 -- 20 |
---|
7 | %i of 16 -- 16 |
---|
8 | %d of 16 -- 16 |
---|
9 | '%-3d' of 16 -- '16 ' |
---|
10 | '%3d' of 16 -- ' 16' |
---|
11 | %u of 16 -- 16 |
---|
12 | %X of 16 -- 10 |
---|
13 | %x of 16 -- 10 |
---|
14 | %p of 0x1234 -- 0x1234 |
---|
15 | %lo of 2147483647 -- 17777777777 |
---|
16 | %li of 2147483647 -- 2147483647 |
---|
17 | %lu of 2147483647 -- 2147483647 |
---|
18 | %lx of 2147483647 -- 7fffffff |
---|
19 | %lo of -2147483648 -- 20000000000 |
---|
20 | %li of -2147483648 -- -2147483648 |
---|
21 | %lx of -2147483648 -- 80000000 |
---|
22 | %lo of 4294967295 -- 37777777777 |
---|
23 | %lu of 4294967295 -- 4294967295 |
---|
24 | %lx of 4294967295 -- ffffffff |
---|
25 | %llo of 9223372036854775807 -- 777777777777777777777 |
---|
26 | %lli of 9223372036854775807 -- 9223372036854775807 |
---|
27 | %llu of 9223372036854775807 -- 9223372036854775807 |
---|
28 | %llx of 9223372036854775807 -- 7fffffffffffffff |
---|
29 | %llo of -9223372036854775808 -- 1000000000000000000000 |
---|
30 | %lli of -9223372036854775808 -- -9223372036854775808 |
---|
31 | %llx of -9223372036854775808 -- 8000000000000000 |
---|
32 | %llo of 18446744073709551615 -- 1777777777777777777777 |
---|
33 | %llu of 18446744073709551615 -- 18446744073709551615 |
---|
34 | %llx of 18446744073709551615 -- ffffffffffffffff |
---|
35 | %d of -16 -- -16 |
---|
36 | %d of -16 -- -16 |
---|
37 | %u of -16 -- 4294967280 |
---|
38 | %s of Mary Had a Little Lamb -- 'Mary Had a Little Lamb' |
---|
39 | %s of NULL -- '(null)' |
---|
40 | %12s of joel -- ' joel' |
---|
41 | %4s of joel -- 'joel' |
---|
42 | %-12s of joel -- 'joel ' |
---|
43 | %-4s of joel -- 'joel' |
---|
44 | %c of X -- 'X' |
---|
45 | %hhu of X -- 88 |
---|
46 | |
---|
47 | getchark - NULL getchar method - return -1 |
---|
48 | getchark - test getchar method - returns 0x35 |
---|
49 | |
---|
50 | *** END OF TEST SPPRINTK *** |
---|