Add isdigit function

This commit is contained in:
pjht 2019-09-06 15:36:10 -05:00
parent 9b56ca3be8
commit c5504b80dc
2 changed files with 12 additions and 0 deletions

6
libc/ctype.c Normal file
View File

@ -0,0 +1,6 @@
int isdigit(int c) {
if (c>='0'&&c<='9') {
return 1;
}
return 0;
}

View File

@ -0,0 +1,6 @@
#ifndef CTYPE_H
#define CTYPE_H
int isdigit(int c);
#endif