home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cenvi23.zip / ASCII.CMM < prev    next >
Text File  |  1996-02-14  |  643b  |  23 lines

  1. /***************************************************
  2.  *** Ascii.cmm - Display the ASCII character set ***
  3.  *** ver.1                                       ***
  4.  ***************************************************/
  5.  
  6. #define  ROW_COUNT      20
  7. #define  COL_COUNT      13
  8.  
  9. Unprintables = "\a\b\t\r\n\032\033"
  10.  
  11. for ( row = 0; row < ROW_COUNT; row++ ) {
  12.    for ( col = 0; col < COL_COUNT; col++ ) {
  13.       c = ROW_COUNT*col + row
  14.       if c < 256
  15.          printf("%c-%-3d ",(NULL==strchr(Unprintables,c))?c:'.',c)
  16.    }
  17.    printf("\n")
  18. }
  19.  
  20. if !defined(_SHELL_) && (defined(_95WIN_)||defined(_NTWIN_)||defined(_WIN_))
  21.    getch();
  22.  
  23.