diff options
Diffstat (limited to 'libc/misc/ctypefn.c')
-rw-r--r-- | libc/misc/ctypefn.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libc/misc/ctypefn.c b/libc/misc/ctypefn.c new file mode 100644 index 0000000..921da31 --- /dev/null +++ b/libc/misc/ctypefn.c @@ -0,0 +1,25 @@ +/* Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk> + * This file is part of the Linux-8086 C library and is distributed + * under the GNU Library General Public License. + */ + +/* + * CTYPE.C Character classification and conversion + */ + +#include <ctype.h> + +#undef toupper +#undef tolower + +int toupper(c) +int c; +{ + return(islower(c) ? (c ^ 0x20) : (c)); +} + +int tolower(c) +int c; +{ + return(isupper(c) ? (c ^ 0x20) : (c)); +} |