home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mntlib25.zoo / toxxx.c < prev    next >
C/C++ Source or Header  |  1992-09-11  |  420b  |  19 lines

  1. #include <ctype.h>
  2.  
  3. #undef    toupper /* note that in gcc we have a safe version of these, */
  4. #undef  tolower    /* but its better to leave these as routines in case */
  5.         /* some code uses these as function pointers --  i   */
  6.         /* have seen code that does.                 */
  7.  
  8. int toupper(c)
  9.     int c;
  10.     {
  11.     return(islower(c) ? (c ^ 0x20) : (c));
  12.     }
  13.  
  14. int tolower(c)
  15.     int c;
  16.     {
  17.     return(isupper(c) ? (c ^ 0x20) : (c));
  18.     }
  19.