blob: 758514948c8acfea844e32d8e1b30ba61b631e4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <string.h>
#include <stdbool.h>
bool isnumber(char* text) {
for(int j = strlen(text); j > 0; j--) {
if(text[j] < '0' && text[j] > '9') {
return false;
}
}
return true;
}
bool notdelim(char c) {
return c != ' ' && c != '\n' && c != '\t' && c != '\0';
}
|