Go to the source code of this file.
◆ isalnum()
- Copyright
- Copyright The SimpleKernel Contributors
Definition at line 11 of file sk_ctype.c.
◆ isalpha()
◆ isblank()
Definition at line 15 of file sk_ctype.c.
15{ return (c == ' ' || c == '\t'); }
◆ iscntrl()
Definition at line 17 of file sk_ctype.c.
17{ return ((c >= 0 && c <= 31) || c == 127); }
◆ isdigit()
Definition at line 19 of file sk_ctype.c.
19{ return (c >= '0' && c <= '9'); }
◆ isgraph()
Definition at line 21 of file sk_ctype.c.
21{ return (c >= 33 && c <= 126); }
◆ islower()
Definition at line 23 of file sk_ctype.c.
23{ return (c >= 'a' && c <= 'z'); }
◆ isprint()
Definition at line 25 of file sk_ctype.c.
25{ return (c >= 32 && c <= 126); }
◆ ispunct()
◆ isspace()
Definition at line 29 of file sk_ctype.c.
29 {
30 return (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' ||
31 c == '\v');
32}
◆ isupper()
Definition at line 34 of file sk_ctype.c.
34{ return (c >= 'A' && c <= 'Z'); }
◆ isxdigit()
Definition at line 36 of file sk_ctype.c.
36 {
37 return (
isdigit(c) || (c >=
'a' && c <=
'f') || (c >=
'A' && c <=
'F'));
38}
◆ tolower()
Definition at line 40 of file sk_ctype.c.
40 {
42 return c + ('a' - 'A');
43 }
44 return c;
45}
◆ toupper()
Definition at line 47 of file sk_ctype.c.
47 {
49 return c - ('a' - 'A');
50 }
51 return c;
52}