blob: 2e8714fcc45e74a16220180424cb39cc4589035c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <ctype.h>
int isspace(int c) {
switch (c) {
case ' ':
case '\t':
case '\v':
case '\f':
case '\r':
case '\n':
return 1;
default:
return 0;
}
}
int isdigit(int c) {
return c - '0' > -1 && c - '0' < 10;
}
|