SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
ctype.h
Go to the documentation of this file.
1
#ifndef MSL_CTYPE_H
2
#define MSL_CTYPE_H
3
4
extern
const
unsigned
char
__ctype_map
[];
5
extern
const
unsigned
char
__lower_map
[];
6
extern
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
26
static
inline
int
isalpha
(
int
c
)
27
{
28
return
(
int
) (
__ctype_map
[(
unsigned
char)
c
] &
__letter
);
29
}
30
static
inline
int
isdigit
(
int
c
)
31
{
32
return
(
int
) (
__ctype_map
[(
unsigned
char)
c
] &
__digit
);
33
}
34
static
inline
int
isspace
(
int
c
)
35
{
36
return
(
int
) (
__ctype_map
[(
unsigned
char)
c
] &
__whitespace
);
37
}
38
static
inline
int
isupper
(
int
c
)
39
{
40
return
(
int
) (
__ctype_map
[(
unsigned
char)
c
] &
__upper_case
);
41
}
42
static
inline
int
isxdigit
(
int
c
)
43
{
44
return
(
int
) (
__ctype_map
[(
unsigned
char)
c
] &
__hex_digit
);
45
}
46
47
int
toupper
(
int
c
);
48
int
tolower
(
int
c
);
49
50
#endif
__upper_map
const unsigned char __upper_map[256]
Definition
ctype.c:54
__lower_map
const unsigned char __lower_map[256]
Definition
ctype.c:29
__ctype_map
const unsigned char __ctype_map[256]
Definition
ctype.c:15
__letter
#define __letter
Definition
ctype.h:18
isupper
static int isupper(int c)
Definition
ctype.h:38
__upper_case
#define __upper_case
Definition
ctype.h:16
isspace
static int isspace(int c)
Definition
ctype.h:34
__digit
#define __digit
Definition
ctype.h:13
toupper
int toupper(int c)
Definition
ctype.c:87
isalpha
static int isalpha(int c)
Definition
ctype.h:26
__hex_digit
#define __hex_digit
Definition
ctype.h:14
tolower
int tolower(int c)
Definition
ctype.c:79
isdigit
static int isdigit(int c)
Definition
ctype.h:30
__whitespace
#define __whitespace
Definition
ctype.h:22
isxdigit
static int isxdigit(int c)
Definition
ctype.h:42
c
int c
Definition
tev.c:10
src
MSL
ctype.h
Generated by
1.17.0