diff options
| author | ame <[email protected]> | 2024-02-22 10:17:40 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-02-22 10:17:40 -0600 |
| commit | 867a86a9ab31c0652a46759443fc98a49f91c8dd (patch) | |
| tree | f252e0c821a3c2cce56dd3180ea1c70fccd48d5a /src/types/str.h | |
| parent | 83f9dca38af329d214c7d6dd2819ec2c6621d679 (diff) | |
cleaning and switch to parray_t
Diffstat (limited to 'src/types/str.h')
| -rw-r--r-- | src/types/str.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/types/str.h b/src/types/str.h new file mode 100644 index 0000000..60b0cb9 --- /dev/null +++ b/src/types/str.h @@ -0,0 +1,15 @@ +#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_pushl(str*, char*, size_t); +void str_clear(str*); |
