diff options
-rw-r--r-- | include/util.h | 1 | ||||
-rw-r--r-- | src/util.c | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/include/util.h b/include/util.h index d485b0f..ff81cbb 100644 --- a/include/util.h +++ b/include/util.h @@ -4,6 +4,5 @@ char *ltrim(char *s); char *rtrim(char *s); char *trim(char *s); -char *remove_spaces(char *str); #endif @@ -25,16 +25,3 @@ trim(char *s) { return rtrim(ltrim(s)); } - -char * -remove_spaces(char *str) -{ - int count = 0; - - for (int i = 0; str[i]; i++) - if (!isspace(str[i])) - str[count++] = str[i]; - str[count] = '\0'; - - return str; -} |