diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-05-14 21:43:02 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-05-14 21:43:02 -0400 |
commit | e735ad6710a82604a206ad29f6cbcdd7dc4b024c (patch) | |
tree | 5fe8eebbb7a2bff20bb71bd2368955356979e0a2 /lib/convert.c | |
parent | sync (diff) | |
download | lazysphere-e735ad6710a82604a206ad29f6cbcdd7dc4b024c.tar.gz lazysphere-e735ad6710a82604a206ad29f6cbcdd7dc4b024c.tar.bz2 lazysphere-e735ad6710a82604a206ad29f6cbcdd7dc4b024c.zip |
refactor and add su
Diffstat (limited to 'lib/convert.c')
-rw-r--r-- | lib/convert.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/convert.c b/lib/convert.c index a4639c4..c3e011d 100644 --- a/lib/convert.c +++ b/lib/convert.c @@ -1,5 +1,4 @@ -#include "convert.h" -#include "error.h" +#include "lslib.h" #include <ctype.h> #include <stdio.h> @@ -124,3 +123,10 @@ void print_file_path(char* path) { printf("%s", path); } } + +void nuke_str(char* type) { + *type = 0; + while(*(++type)) { + *type = 0; + } +} |