home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cenvi23.zip
/
ASCII.CMM
< prev
next >
Wrap
Text File
|
1996-02-14
|
643b
|
23 lines
/***************************************************
*** Ascii.cmm - Display the ASCII character set ***
*** ver.1 ***
***************************************************/
#define ROW_COUNT 20
#define COL_COUNT 13
Unprintables = "\a\b\t\r\n\032\033"
for ( row = 0; row < ROW_COUNT; row++ ) {
for ( col = 0; col < COL_COUNT; col++ ) {
c = ROW_COUNT*col + row
if c < 256
printf("%c-%-3d ",(NULL==strchr(Unprintables,c))?c:'.',c)
}
printf("\n")
}
if !defined(_SHELL_) && (defined(_95WIN_)||defined(_NTWIN_)||defined(_WIN_))
getch();