aboutsummaryrefslogtreecommitdiff
path: root/str.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-11 21:43:36 +1100
committerquou <quou@disroot.org>2024-10-11 21:43:36 +1100
commit24b72170d34cee515398f206f087bfeafc7b6b55 (patch)
tree24c2bc3d7e1c0bdac9de38dae3c5d2de7e669f25 /str.h
parent9add408984464bd6b3cc018bb14c3d69ad0a2898 (diff)
game is pretty much done kek
Diffstat (limited to 'str.h')
-rw-r--r--str.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/str.h b/str.h
new file mode 100644
index 0000000..f6479cc
--- /dev/null
+++ b/str.h
@@ -0,0 +1,14 @@
+#ifndef str_h
+#define str_h
+
+struct Arena;
+
+int string_equal(const char* a, const char* b);
+int string_copy(char* dst, const char* src);
+int string_len(const char* s);
+char* dup_string(struct Arena* a, const char* s);
+
+int int_to_buf(int n, char* buf);
+int f_to_buf(int f, char* buf);
+
+#endif