home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 5.ddi / CLIBSRC2.ZIP / IS.CAS < prev    next >
Encoding:
Text File  |  1992-06-10  |  1.9 KB  |  130 lines

  1. /*---------------------------------------------------------------------------
  2.  * filename - is.cas
  3.  *
  4.  * function(s)     - replacements for macros in ctype.h, stdio.h
  5.  *    isalnum
  6.  *    isascii
  7.  *    isalpha
  8.  *    iscntrl
  9.  *    isdigit
  10.  *    isgraph
  11.  *    islower
  12.  *    isprint
  13.  *    ispunct
  14.  *    isspace
  15.  *    isupper
  16.  *    isxdigit
  17.  *    getc
  18.  *    getchar
  19.  *    putc
  20.  *    putchar
  21.  *    feof
  22.  *    ferror
  23.  *--------------------------------------------------------------------------*/
  24.  
  25. /*
  26.  *      C/C++ Run Time Library - Version 5.0
  27.  *
  28.  *      Copyright (c) 1987, 1992 by Borland International
  29.  *      All Rights Reserved.
  30.  *
  31.  */
  32.  
  33.  
  34. #pragma inline
  35. #include <ctype.h>
  36. #include <stdio.h>
  37. #include <stdlib.h>
  38.  
  39. int (isalnum)( int c )
  40.   {
  41.   return( isalnum( c ) );
  42.   }
  43.  
  44. int (isascii)( int c )
  45.   {
  46.   return( isascii( c ) );
  47.   }
  48.  
  49. int (isalpha)( int c )
  50.   {
  51.   return( isalpha( c ) );
  52.   }
  53.  
  54. int (iscntrl)( int c )
  55.   {
  56.   return( iscntrl( c ) );
  57.   }
  58.  
  59. int (isdigit)( int c )
  60.   {
  61.   return( isdigit( c ) );
  62.   }
  63.  
  64. int (isgraph)( int c )
  65.   {
  66.   return( isgraph( c ) );
  67.   }
  68.  
  69. int (islower)( int c )
  70.   {
  71.   return( islower( c ) );
  72.   }
  73.  
  74. int (isprint)( int c )
  75.   {
  76.   return( isprint( c ) );
  77.   }
  78.  
  79. int (ispunct)( int c )
  80.   {
  81.   return( ispunct( c ) );
  82.   }
  83.  
  84. int (isspace)( int c )
  85.   {
  86.   return( isspace( c ) );
  87.   }
  88.  
  89. int (isupper)( int c )
  90.   {
  91.   return( isupper( c ) );
  92.   }
  93.  
  94. int (isxdigit)( int c )
  95.   {
  96.   return( isxdigit( c ) );
  97.   }
  98.  
  99. int (getc)( FILE *fp )
  100.   {
  101.   return( getc( fp ) );
  102.   }
  103.  
  104. #ifndef _Windows
  105. int (getchar)( void )
  106.   {
  107.   return( getchar() );
  108.   }
  109. #endif
  110.  
  111. int (putc)( const int c, FILE *fp )
  112.   {
  113.   return( putc( c, fp ) );
  114.   }
  115.  
  116. int (putchar)( const int c )
  117.   {
  118.   return( putchar( c ) );
  119.   }
  120.  
  121. int (feof)( FILE *fp )
  122.   {
  123.   return( feof( fp ) );
  124.   }
  125.  
  126. int (ferror)( FILE *fp )
  127.   {
  128.   return( ferror( fp ) );
  129.   }
  130.