add: isprint

This commit is contained in:
starnakin 2024-09-07 01:56:52 +02:00
parent 6fe18b3572
commit 792f8f1283
2 changed files with 6 additions and 0 deletions

View File

@ -9,7 +9,9 @@ int isdigit(int c);
/* /*
int isgraph(int c); int isgraph(int c);
int islower(int c); int islower(int c);
*/
int isprint(int c); int isprint(int c);
/*
int ispunct(int c); int ispunct(int c);
int isspace(int c); int isspace(int c);
int isupper(int c); int isupper(int c);

4
src/ctype/isprint.c Normal file
View File

@ -0,0 +1,4 @@
int isprint(int c)
{
return (32 <= c && c < 127);
}