diff options
author | Hampus <hampus@hampusmat.com> | 2022-01-05 21:57:09 +0100 |
---|---|---|
committer | Hampus <hampus@hampusmat.com> | 2022-01-05 21:57:09 +0100 |
commit | be8f26b069de778474eb634dcf3f53f5ec133002 (patch) | |
tree | 5d294a22a4e0b5aecb13b566fec1dbc1a465742a | |
parent | dc78467ebc7df9bfad81ed6e30f74139440ab159 (diff) |
refactor: delete unused utility function
-rw-r--r-- | src/utils.c | 12 | ||||
-rw-r--r-- | src/utils.h | 7 |
2 files changed, 0 insertions, 19 deletions
diff --git a/src/utils.c b/src/utils.c index da48ef6..760589c 100644 --- a/src/utils.c +++ b/src/utils.c @@ -4,18 +4,6 @@ #include <stdlib.h> #include <limits.h> -int is_number(char *str) -{ - unsigned int length = strlen(str); - - for (unsigned int c = 0; c < length; c++) - if (!isdigit(str[c])) - return 0; - - return 1; -} - - void *malloc_s(unsigned long amount) { void *memory = malloc(amount); diff --git a/src/utils.h b/src/utils.h index 049e583..2f36034 100644 --- a/src/utils.h +++ b/src/utils.h @@ -2,13 +2,6 @@ #define UTILS_H /** - * Returns whether or not a string is a number. - * - * @param str A string - */ -int is_number(char *str); - -/** * Safely allocates memory to the heap. * * @param amount The amount of memory to allocate |