From ac8a2fd77f7661b60cf2b272090ece67f65951db Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 2 Jun 2023 16:22:29 -0400 Subject: refactor: always output via buffer --- drhstrings.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 drhstrings.c (limited to 'drhstrings.c') diff --git a/drhstrings.c b/drhstrings.c new file mode 100644 index 0000000..7585149 --- /dev/null +++ b/drhstrings.c @@ -0,0 +1,15 @@ +#include +#include + +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'; +} -- cgit v1.2.3