PatchworkOS
19e446b
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
ctype.h
Go to the documentation of this file.
1
#ifndef _CTYPE_H
2
#define _CTYPE_H 1
3
4
#if defined(__cplusplus)
5
extern
"C"
6
{
7
#endif
8
9
#include "
_libstd/ascii.h
"
10
#include "
_libstd/config.h
"
11
12
#define isalnum(c) ((int)(_asciiTable[(int)(c)].flags & (_ASCII_ALPHA | _ASCII_DIGIT)))
13
14
#define isalpha(c) ((int)(_asciiTable[(int)(c)].flags & _ASCII_ALPHA))
15
16
#define isblank(c) ((int)(_asciiTable[(int)(c)].flags & _ASCII_BLANK))
17
18
#define iscntrl(c) ((int)(_asciiTable[(int)(c)].flags & _ASCII_CNTRL))
19
20
#define isdigit(c) ((int)(_asciiTable[(int)(c)].flags & _ASCII_DIGIT))
21
22
#define isgraph(c) ((int)(_asciiTable[(int)(c)].flags & _ASCII_GRAPH))
23
24
#define islower(c) ((int)(_asciiTable[(int)(c)].flags & _ASCII_LOWER))
25
26
#define isprint(c) ((int)!(_asciiTable[(int)(c)].flags & _ASCII_CNTRL))
27
28
#define ispunct(c) ((int)(_asciiTable[(int)(c)].flags & _ASCII_PUNCT))
29
30
#define isspace(c) ((int)(_asciiTable[(int)(c)].flags & _ASCII_SPACE))
31
32
#define isupper(c) ((int)(_asciiTable[(int)(c)].flags & _ASCII_UPPER))
33
34
#define isxdigit(c) ((int)(_asciiTable[(int)(c)].flags & _ASCII_XDIGIT))
35
36
#define tolower(c) ((int)(_asciiTable[(int)(c)].lower))
37
38
#define toupper(c) ((int)(_asciiTable[(int)(c)].upper))
39
40
#if defined(__cplusplus)
41
}
42
#endif
43
44
#endif
config.h
ascii.h
include
ctype.h
Generated on Sat Jan 24 2026 10:59:24 for PatchworkOS by
1.9.8