home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 2.ddi / CLIB2.ZIP / IS.CAS < prev    next >
Encoding:
Text File  |  1990-06-07  |  2.4 KB  |  135 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.  *    remove
  18.  *    getc
  19.  *    getchar
  20.  *    putc
  21.  *    putchar
  22.  *    feof
  23.  *    ferror
  24.  *--------------------------------------------------------------------------*/
  25.  
  26. /*[]------------------------------------------------------------[]*/
  27. /*|                                                              |*/
  28. /*|     Turbo C Run Time Library - Version 3.0                   |*/
  29. /*|                                                              |*/
  30. /*|                                                              |*/
  31. /*|     Copyright (c) 1987,1988,1990 by Borland International    |*/
  32. /*|     All Rights Reserved.                                     |*/
  33. /*|                                                              |*/
  34. /*[]------------------------------------------------------------[]*/
  35.  
  36. #pragma inline
  37. #include <ctype.h>
  38. #include <stdio.h>
  39. #include <stdlib.h>
  40.  
  41. int (isalnum)( int c )
  42.   {
  43.   return( isalnum( c ) );
  44.   }
  45.  
  46. int (isascii)( int c )
  47.   {
  48.   return( isascii( c ) );
  49.   }
  50.  
  51. int (isalpha)( int c )
  52.   {
  53.   return( isalpha( c ) );
  54.   }
  55.  
  56. int (iscntrl)( int c )
  57.   {
  58.   return( iscntrl( c ) );
  59.   }
  60.  
  61. int (isdigit)( int c )
  62.   {
  63.   return( isdigit( c ) );
  64.   }
  65.  
  66. int (isgraph)( int c )
  67.   {
  68.   return( isgraph( c ) );
  69.   }
  70.  
  71. int (islower)( int c )
  72.   {
  73.   return( islower( c ) );
  74.   }
  75.  
  76. int (isprint)( int c )
  77.   {
  78.   return( isprint( c ) );
  79.   }
  80.  
  81. int (ispunct)( int c )
  82.   {
  83.   return( ispunct( c ) );
  84.   }
  85.  
  86. int (isspace)( int c )
  87.   {
  88.   return( isspace( c ) );
  89.   }
  90.  
  91. int (isupper)( int c )
  92.   {
  93.   return( isupper( c ) );
  94.   }
  95.  
  96. int (isxdigit)( int c )
  97.   {
  98.   return( isxdigit( c ) );
  99.   }
  100.  
  101. int (remove)( const char *c )
  102.   {
  103.   return( remove( c ) );
  104.   }
  105.  
  106. int (getc)( FILE *fp )
  107.   {
  108.   return( getc( fp ) );
  109.   }
  110.  
  111. int (getchar)( void )
  112.   {
  113.   return( getchar() );
  114.   }
  115.  
  116. int (putc)( const int c, FILE *fp )
  117.   {
  118.   return( putc( c, fp ) );
  119.   }
  120.  
  121. int (putchar)( const int c )
  122.   {
  123.   return( putchar( c ) );
  124.   }
  125.  
  126. int (feof)( FILE *fp )
  127.   {
  128.   return( feof( fp ) );
  129.   }
  130.  
  131. int (ferror)( FILE *fp )
  132.   {
  133.   return( ferror( fp ) );
  134.   }
  135.