Rev 4172 | Rev 4186 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4172 | Rev 4185 | ||
---|---|---|---|
Line 47... | Line 47... | ||
47 | printf("%lc", (wchar_t) ((hextet << 4) + index)); |
47 | printf("%lc", (wchar_t) ((hextet << 4) + index)); |
48 | 48 | ||
49 | printf("\n"); |
49 | printf("\n"); |
50 | } |
50 | } |
51 | 51 | ||
52 | printf("\nExtended ASCII characters (128 - 255) using printf(\"%%c\") and printf(\"%%lc\"):\n"); |
52 | printf("\nExtended ASCII characters (128 - 255) using printf(\"%%lc\"):\n"); |
53 | 53 | ||
54 | for (hextet = 8; hextet < 16; hextet++) { |
54 | for (hextet = 8; hextet < 16; hextet++) { |
55 | printf("%#" PRIx8 ": ", hextet << 4); |
55 | printf("%#" PRIx8 ": ", hextet << 4); |
56 | 56 | ||
57 | uint8_t index; |
57 | uint8_t index; |
58 | for (index = 0; index < 16; index++) |
58 | for (index = 0; index < 16; index++) |
59 | printf("%c", (char) ((hextet << 4) + index)); |
- | |
60 | - | ||
61 | printf(" "); |
- | |
62 | for (index = 0; index < 16; index++) |
- | |
63 | printf("%lc", (wchar_t) ((hextet << 4) + index)); |
59 | printf("%lc", (wchar_t) ((hextet << 4) + index)); |
64 | 60 | ||
65 | printf("\n"); |
61 | printf("\n"); |
66 | } |
62 | } |
67 | 63 |