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