diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-11 12:36:54 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-11 12:39:59 +0530 |
| commit | f44217a2b4bc73281a006f82cdd1374683b3cac7 (patch) | |
| tree | dde5a56d08e053a722529a22607c5ef56d64490d | |
| parent | 4806d11045df99e729809ff22883918d9ba803c9 (diff) | |
util: purge
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | include/util.h | 6 | ||||
| -rw-r--r-- | src/template.c | 1 | ||||
| -rw-r--r-- | src/util.c | 16 |
4 files changed, 0 insertions, 24 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dfd540f..8a16dfb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,6 @@ set(SRC src/list.c src/main.c src/template.c - src/util.c ) add_executable(msg ${SRC}) diff --git a/include/util.h b/include/util.h deleted file mode 100644 index 58c1f58..0000000 --- a/include/util.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef __UTIL_H -#define __UTIL_H - -void xstrcat(char *s1, char *s2); - -#endif diff --git a/src/template.c b/src/template.c index 4d84408..31bb41f 100644 --- a/src/template.c +++ b/src/template.c @@ -7,7 +7,6 @@ #include <stdlib.h> #include <string.h> #include <template.h> -#include <util.h> #include "../config.h" diff --git a/src/util.c b/src/util.c deleted file mode 100644 index 4863e29..0000000 --- a/src/util.c +++ /dev/null @@ -1,16 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <util.h> - -void -xstrcat(char *s1, char *s2) -{ - size_t a = strlen(s1); - size_t b = strlen(s2); - size_t size_ab = a + b + 1; - - s1 = realloc(s1, size_ab); - - memcpy(s1 + a, s2, b + 1); -} |
