OurOS 0.1
Operating System built by McGill Students
 
Loading...
Searching...
No Matches
ctype.h
1#ifndef _SYS_CTYPE_H
2#define _SYS_CTYPE_H
3
4// checks for alphanumeric character (isalpha || isdigit)
5int isalnum(int c);
6
7// checks for alphabetic character
8int isalpha(int c);
9
10// checks for a control character
11int iscntrl(int c);
12
13// checks for a digit (0 through 9)
14int isdigit(int c);
15
16// checks for any printable character except space
17int isgraph(int c);
18
19// checks for a lowerspace character
20int islower(int c);
21
22// checks for an upperspace character
23int isupper(int c);
24
25// checks for any printable character including space
26int isprint(int c);
27
28// checks for any printable character that is not a space or alphanumeric character
29int ispunct(int c);
30
31// checks for whitespace characters (\f,\n,\r,\t,\v)
32int isspace(int c);
33
34// checks for hexadecimal digits (0 through 9 A through F uppercase and lowercase)
35int isxdigit(int c);
36
37// checks whether c is a 7-bit unsigned char value that fits into the ASCII character set.
38int isascii(int c);
39
40// checks for a blank character; that is, a space or tab
41int isblank(int c);
42
43// If c is a lowercase letter, return its uppercase equivalent, otherwise just return c.
44int toupper(int c);
45// If c is an uppercase letter, return its lowercase equivalent, otherwise just return c.
46int tolower(int c);
47#endif