SSBM Decomp
Loading...
Searching...
No Matches
ctype.h
Go to the documentation of this file.
1#ifndef MSL_CTYPE_H
2#define MSL_CTYPE_H
3
4extern const unsigned char __ctype_map[];
5extern const unsigned char __lower_map[];
6extern const unsigned char __upper_map[];
7
8#define EOF -1L
9#define __control_char 0x01
10#define __motion_char 0x02
11#define __space_char 0x04
12#define __punctuation 0x08
13#define __digit 0x10
14#define __hex_digit 0x20
15#define __lower_case 0x40
16#define __upper_case 0x80
17
18#define __letter (__lower_case | __upper_case)
19#define __alphanumeric (__letter | __digit)
20#define __graphic (__alphanumeric | __punctuation)
21#define __printable (__graphic | __space_char)
22#define __whitespace (__motion_char | __space_char)
23#define __control (__motion_char | __control_char)
24#define __zero_fill(c) ((int) (unsigned char) (c))
25
26inline int isalpha(int c)
27{
28 return (int) (__ctype_map[(unsigned char) c] & __letter);
29}
30inline int isdigit(int c)
31{
32 return (int) (__ctype_map[(unsigned char) c] & __digit);
33}
34inline int isspace(int c)
35{
36 return (int) (__ctype_map[(unsigned char) c] & __whitespace);
37}
38inline int isupper(int c)
39{
40 return (int) (__ctype_map[(unsigned char) c] & __upper_case);
41}
42inline int isxdigit(int c)
43{
44 return (int) (__ctype_map[(unsigned char) c] & __hex_digit);
45}
46
47int toupper(int c);
48int tolower(int c);
49
50#endif
#define __letter
Definition ctype.h:18
const unsigned char __ctype_map[]
Definition ctype.c:15
int isalpha(int c)
Definition ctype.h:26
int isdigit(int c)
Definition ctype.h:30
int isspace(int c)
Definition ctype.h:34
const unsigned char __upper_map[]
Definition ctype.c:54
const unsigned char __lower_map[]
Definition ctype.c:29
#define __upper_case
Definition ctype.h:16
#define __digit
Definition ctype.h:13
int toupper(int c)
Definition ctype.c:87
#define __hex_digit
Definition ctype.h:14
int tolower(int c)
Definition ctype.c:79
int isupper(int c)
Definition ctype.h:38
int isxdigit(int c)
Definition ctype.h:42
#define __whitespace
Definition ctype.h:22
int c
Definition tev.c:12