Add isdigit function
This commit is contained in:
parent
9b56ca3be8
commit
c5504b80dc
6
libc/ctype.c
Normal file
6
libc/ctype.c
Normal file
@ -0,0 +1,6 @@
|
||||
int isdigit(int c) {
|
||||
if (c>='0'&&c<='9') {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
6
sysroot/usr/include/ctype.h
Normal file
6
sysroot/usr/include/ctype.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef CTYPE_H
|
||||
#define CTYPE_H
|
||||
|
||||
int isdigit(int c);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user