PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ctype.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define isascii(c)
 
#define toascii(c)
 
#define isblank(c)
 
#define _U   0x01
 
#define _L   0x02
 
#define _N   0x04
 
#define _S   0x08
 
#define _P   0x10
 
#define _C   0x20
 
#define _X   0x40
 
#define _B   0x80
 
#define isalpha(c)
 
#define isupper(c)
 
#define islower(c)
 
#define isdigit(c)
 
#define isxdigit(c)
 
#define isspace(c)
 
#define ispunct(c)
 
#define isalnum(c)
 
#define isprint(c)
 
#define isgraph(c)
 
#define iscntrl(c)
 
#define toupper(c)
 
#define tolower(c)
 

Functions

unsigned char look_ctype_table (char character)
 
void * get_ctype_table ()
 
char _toupper (char c)
 
char _tolower (char c)
 

Detailed Description

ctype functions for the IOP

Definition in file ctype.h.

Macro Definition Documentation

◆ isascii

#define isascii ( c)
Value:
((unsigned int)(c) <= 127)

Definition at line 30 of file ctype.h.

◆ toascii

#define toascii ( c)
Value:
((unsigned char)(c) & 127)

Definition at line 31 of file ctype.h.

◆ isblank

#define isblank ( c)
Value:
((c == ' ') || (c == '\t'))

Definition at line 33 of file ctype.h.

◆ _U

#define _U   0x01

Uppercase letter

Definition at line 57 of file ctype.h.

◆ _L

#define _L   0x02

Lowercase letter

Definition at line 59 of file ctype.h.

◆ _N

#define _N   0x04

Digit (0-9)

Definition at line 61 of file ctype.h.

◆ _S

#define _S   0x08

Space, tab, newline, vertical tab, formfeed or carriage return

Definition at line 63 of file ctype.h.

◆ _P

#define _P   0x10

Punctuation character

Definition at line 65 of file ctype.h.

◆ _C

#define _C   0x20

Control character or delete

Definition at line 67 of file ctype.h.

◆ _X

#define _X   0x40

Hexadecimal digit (0-9, a-f, A-F)

Definition at line 69 of file ctype.h.

◆ _B

#define _B   0x80

Blank (space)

Definition at line 71 of file ctype.h.

◆ isalpha

#define isalpha ( c)
Value:
(look_ctype_table((unsigned int)(c)) & (_U|_L))
#define _L
Definition ctype.h:59
#define _U
Definition ctype.h:57

Definition at line 73 of file ctype.h.

◆ isupper

#define isupper ( c)
Value:
(look_ctype_table((unsigned int)(c)) & (_U))

Definition at line 74 of file ctype.h.

◆ islower

#define islower ( c)
Value:
(look_ctype_table((unsigned int)(c)) & (_L))

Definition at line 75 of file ctype.h.

◆ isdigit

#define isdigit ( c)
Value:
(look_ctype_table((unsigned int)(c)) & (_N))
#define _N
Definition ctype.h:61

Definition at line 76 of file ctype.h.

◆ isxdigit

#define isxdigit ( c)
Value:
(look_ctype_table((unsigned int)(c)) & (_X|_N))
#define _X
Definition ctype.h:69

Definition at line 77 of file ctype.h.

◆ isspace

#define isspace ( c)
Value:
(look_ctype_table((unsigned int)(c)) & (_S))
#define _S
Definition ctype.h:63

Definition at line 78 of file ctype.h.

◆ ispunct

#define ispunct ( c)
Value:
(look_ctype_table((unsigned int)(c)) & (_P))
#define _P
Definition ctype.h:65

Definition at line 79 of file ctype.h.

◆ isalnum

#define isalnum ( c)
Value:
(look_ctype_table((unsigned int)(c)) & (_U|_L|_N))

Definition at line 80 of file ctype.h.

◆ isprint

#define isprint ( c)
Value:
(look_ctype_table((unsigned int)(c)) & (_P|_U|_L|_N|_B))
#define _B
Definition ctype.h:71

Definition at line 81 of file ctype.h.

◆ isgraph

#define isgraph ( c)
Value:
(look_ctype_table((unsigned int)(c)) & (_P|_U|_L|_N))

Definition at line 82 of file ctype.h.

◆ iscntrl

#define iscntrl ( c)
Value:
(look_ctype_table((unsigned int)(c)) & (_C))
#define _C
Definition ctype.h:67

Definition at line 83 of file ctype.h.

◆ toupper

#define toupper ( c)
Value:
_toupper(c)

Definition at line 89 of file ctype.h.

◆ tolower

#define tolower ( c)
Value:
_tolower(c)

Definition at line 96 of file ctype.h.

Function Documentation

◆ look_ctype_table()

unsigned char look_ctype_table ( char character)
extern

Definition at line 36 of file ctype.c.

◆ get_ctype_table()

void * get_ctype_table ( )
extern

Definition at line 41 of file ctype.c.

◆ _toupper()

char _toupper ( char c)
extern

Definition at line 5 of file toupper.c.

◆ _tolower()

char _tolower ( char c)
extern

Definition at line 5 of file tolower.c.