#ifndef STRING_H #define STRING_H #include #define DEFAULT_STR_SIZE 10 typedef struct { char *buf; size_t len; size_t size; } string_t; string_t *init_string(const char *source); void string_append(string_t *s, char c); void string_concat(string_t *s1, string_t *s2); void string_concat_const(string_t *s, const char *src); char string_pop(string_t *s); void string_free(void *s); #endif