aboutsummaryrefslogtreecommitdiff
path: root/src/i_str.h
diff options
context:
space:
mode:
authorame <[email protected]>2023-12-28 19:02:03 -0600
committerame <[email protected]>2023-12-28 19:02:03 -0600
commit8c591404e3ce9a36acb5fbe26ceaf5d6f63048e5 (patch)
tree6a266ec7e4f61e90c23ce6df557203f948d36d29 /src/i_str.h
parent3c4ce79c929a16602eecbb2a6600e1cea871439f (diff)
json parsing :p
Diffstat (limited to 'src/i_str.h')
-rw-r--r--src/i_str.h14
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*);