Operating System
step_3
include
ctype.h
Go to the documentation of this file.
1
5
#ifndef __C_TYPE_H_
6
#define __C_TYPE_H_
7
#include <stdint.h>
8
static
inline
uint8_t
isdigit
(
char
ch
) {
9
return
ch
>=
'0'
&&
ch
<=
'9'
;
10
}
11
static
inline
uint8_t
isalpha
(
char
ch
) {
12
return
(
ch
>=
'a'
&&
ch
<=
'z'
) || (
ch
>=
'A'
&&
ch
<=
'Z'
);
13
}
14
static
inline
uint8_t
isalnum
(
char
ch
) {
15
return
isdigit
(
ch
) ||
isalpha
(
ch
);
16
}
17
#endif
isalpha
static uint8_t isalpha(char ch)
Definition:
ctype.h:11
ch
char ch
Definition:
timeout.c:9
isalnum
static uint8_t isalnum(char ch)
Definition:
ctype.h:14
isdigit
static uint8_t isdigit(char ch)
Definition:
ctype.h:8
Generated by
1.8.15