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