blob: 5c6d4cb4891f7b58442e00989b817f114075c87a (
plain) (
blame)
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
|
#ifndef CTYPE_H
#define CTYPE_H
/*
* Small subset of <ctype.h> for parsing uses, only handles ASCII
* and passes the rest through.
*/
static inline int toupper(int c)
{
if (c >= 'a' && c <= 'z')
c -= 0x20;
return c;
}
static inline int tolower(int c)
{
if (c >= 'A' && c <= 'Z')
c += 0x20;
return c;
}
#endif /* CTYPE_H */
|