home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume27 / psf3 / part01 / ctp.h next >
Encoding:
C/C++ Source or Header  |  1992-01-20  |  287 b   |  10 lines

  1. #include <ctype.h>
  2. #ifndef tolower
  3. #define tolower(X) ((X)-'A'+'a') /* XXX ASCII */
  4. #endif
  5. #ifndef toupper
  6. #define toupper(X) ((X)-'a'+'A') /* XXX ASCII */
  7. #endif
  8. #define UCCHAR(X) ((isascii(X) && islower(X))?toupper(X):(X))
  9. #define LCCHAR(X) ((isascii(X) && isupper(X))?tolower(X):(X))
  10.