simple/chartab/ctype-test.c

18 lines
289 B
C
Raw Permalink Normal View History

1997-11-18 11:35:54 +01:00
#include <ctype.h>
#include <locale.h>
#include <limits.h>
#include <stdio.h>
int main(int argc, char **argv) {
int i;
setlocale(LC_ALL, "");
for (i = 0; i <= UCHAR_MAX; i++) {
printf ("%2x: ", i);
printf("%c ", isprint(i) ? i : '.');
printf("\n");
}
return 0;
}