home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
archives
/
charsets.zip
/
table.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-07
|
596b
|
25 lines
#include <stdio.h>
/*
Print a 16 x 16 character table on the standard output device.
Make sure your communication path and software are set to 8 bits.
F. da Cruz, Columbia U, 1992
*/
main() {
int i,j,k;
printf(" 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15\n");
for (i = 0; i < 16; i++) {
printf(" %02d ",i);
for (j = 2; j < 8; j++) {
k = (j * 16) + i;
if (k == 127) printf(" ");
else printf(" %c", k);
}
printf(" ");
for (j = 10; j < 16; j++) {
printf(" %c", (j * 16) + i);
}
printf("\n");
}
}