From 3780f207f924f14734cb839fd015bd883fe52ff1 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 30 Jan 2025 21:02:42 -0800 Subject: restructure project --- src/include/better_string.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/include/better_string.h') diff --git a/src/include/better_string.h b/src/include/better_string.h index 0fdc8bd..4fc4315 100644 --- a/src/include/better_string.h +++ b/src/include/better_string.h @@ -2,6 +2,7 @@ #define STRING_H #include +#include #define DEFAULT_STR_SIZE 10 typedef struct { @@ -12,6 +13,10 @@ typedef struct { string_t *init_string(const char *source); +string_t *string_copy(string_t *s); + +char *string_copy_raw(string_t *s); + void string_push(string_t *s, char c); void string_concat(string_t *s1, string_t *s2); @@ -20,6 +25,8 @@ void string_concat_const(string_t *s, const char *src); char string_pop(string_t *s); +bool string_cmp(string_t *s1, string_t *s2); + void string_free(void *s); #endif -- cgit