Operating System
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
static uint8_t isalpha(char ch)
Definition: ctype.h:11
char ch
Definition: timeout.c:9
static uint8_t isalnum(char ch)
Definition: ctype.h:14
static uint8_t isdigit(char ch)
Definition: ctype.h:8