diff options
Diffstat (limited to 'src/i_str.h')
| -rw-r--r-- | src/i_str.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/i_str.h b/src/i_str.h new file mode 100644 index 0000000..18409bf --- /dev/null +++ b/src/i_str.h @@ -0,0 +1,14 @@ +#include <string.h> +#include <stdio.h> +#include <stdlib.h> + +typedef struct { + size_t len; + size_t _bytes; //may be used in the future + char* c; +} str; + +str* str_init(char*); +void str_free(str*); +void str_push(str*, char*); +void str_clear(str*); |
