/*
 * Simple program to printout the ascii character table
 *
 * Paul Schou
 *
 */

main () {
	int i;
	printf("      ");
	for(i = 0; i < 16; i++)
		printf("0x%c ", hv(i));
	for(i = 0; i < 256; i++) {
		if(i % 16 == 0) printf("\n0x%c0 ", hv(i / 16));
		if(i != 10)   // comment this line to allow the line 
		              // to break in table
		//if(i != 13)   // uncomment this line to prevent the line 
		              // from breaking in some text viewers
		printf("  %c ",i);
	}
}
int hv (int i) {
	if(i < 10) return i+'0';
	else return i-10+'A';
}
