home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume27
/
psf3
/
part01
/
ctp.h
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-01-20
|
287 b
|
10 lines
#include <ctype.h>
#ifndef tolower
#define tolower(X) ((X)-'A'+'a') /* XXX ASCII */
#endif
#ifndef toupper
#define toupper(X) ((X)-'a'+'A') /* XXX ASCII */
#endif
#define UCCHAR(X) ((isascii(X) && islower(X))?toupper(X):(X))
#define LCCHAR(X) ((isascii(X) && isupper(X))?tolower(X):(X))