home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
gnustuff
/
tos
/
gnulib
/
libsrc98.zoo
/
toxxx.c
< prev
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-05-31
|
402 b
|
19 lines
#include <ctype.h>
#undef toupper /* note that in gcc we have a safe version of these, */
#undef tolower /* but its better to leave these as routines in case */
/* some code uses these as function pointers -- i */
/* have seen code that does. */
int toupper(c)
int c;
{
return(islower(c) ? (c ^ 0x20) : (c));
}
int tolower(c)
int c;
{
return(isupper(c) ? (c ^ 0x20) : (c));
}