aboutsummaryrefslogtreecommitdiff
path: root/src/types/str.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/str.h')
-rw-r--r--src/types/str.h15
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*);