diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-30 21:02:42 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-30 21:02:42 -0800 |
commit | 3780f207f924f14734cb839fd015bd883fe52ff1 (patch) | |
tree | de13568dbf97ffe477943854bcb3ea6001b46cf8 /src/include/better_string.h | |
parent | ef9ab1fd141f4057d41f2d6ed8ab8d67c44894d5 (diff) |
Diffstat (limited to 'src/include/better_string.h')
-rw-r--r-- | src/include/better_string.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <stdlib.h> +#include <stdbool.h> #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 |