summaryrefslogtreecommitdiff
path: root/libc/misc/ctypefn.c
blob: 921da31e5014c4d8471fe42180b9acf4330f17ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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));
}