| 1 | /* |
| 2 | the findext() function in main.c was full of the "| 0x20" stuff |
| 3 | below; I used this to verify that the intention was to convert |
| 4 | a character to lower case |
| 5 | */ |
| 6 | |
| 7 | #include <ctype.h> |
| 8 | #include <stdio.h> |
| 9 | |
| 10 | int main(void) |
| 11 | { |
| 12 | for (int i = 0; i < 256; i++) { |
| 13 | int raw = i; |
| 14 | int low = i | 0x20; |
| 15 | printf(" %c \t %c \n", isprint(raw) ? raw : 'X', isprint(low) ? low : 'Y'); |
| 16 | } |
| 17 | } |