Category : C Source Code
Archive   : CENVID17.ZIP
Filename : ASCII.BAT

 
Output of file : ASCII.BAT contained in archive : CENVID17.ZIP
@echo off
REM Ascii.bat - Display the ASCII character set
cenvi %0.bat
GOTO CENVI_EXIT

#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")
}

:CENVI_EXIT


  3 Responses to “Category : C Source Code
Archive   : CENVID17.ZIP
Filename : ASCII.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/