diff options
| author | twells46 <173561638+twells46@users.noreply.github.com> | 2026-03-30 21:07:39 -0500 |
|---|---|---|
| committer | twells46 <173561638+twells46@users.noreply.github.com> | 2026-03-30 21:07:39 -0500 |
| commit | f874d6571a9c5763e5c4270c3389ef2502d2f5e3 (patch) | |
| tree | dde651f3a2fb6ef4a70ee6da027497dbd734d7e0 /str_vec.h | |
Diffstat (limited to 'str_vec.h')
| -rw-r--r-- | str_vec.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/str_vec.h b/str_vec.h new file mode 100644 index 0000000..f361b39 --- /dev/null +++ b/str_vec.h @@ -0,0 +1,15 @@ +#ifndef STR_VEC_H +#define STR_VEC_H + +#include <stddef.h> + +struct str_vec { + char **data; + size_t len; +}; + +void str_vec_init(struct str_vec *vec); +void str_vec_push(struct str_vec *vec, const char *new_str); +void str_vec_free(struct str_vec *vec); + +#endif //STR_VEC_H |