home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / THIN C 2.0 / Projects / ASCII / ASCII.c next >
Encoding:
C/C++ Source or Header  |  1994-02-02  |  422 b   |  24 lines  |  [TEXT/THIN]

  1. #include <stdio.h> /* Ignore this line -- we'll get to it in chapter 9 */
  2.  
  3. PrintChars( char low, char high )
  4. {
  5.     unsigned char    c;
  6.     
  7.     printf( "%d to %d ---> ", low, high );
  8.     for ( c = low; c <= high; c++ )
  9.         printf( "%c", c );
  10.     
  11.     printf( "\n" );
  12. }
  13.  
  14.  
  15. main()
  16. {
  17.     PrintChars( 32, 47 );
  18.     PrintChars( 48, 57 );
  19.     PrintChars( 58, 64 );
  20.     PrintChars( 65, 90 );
  21.     PrintChars( 91, 96 );
  22.     PrintChars( 97, 122 );
  23.     PrintChars( 123, 126 );
  24. }