about summary refs log tree commit diff stats
path: root/inc/sstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/sstring.h')
-rw-r--r--inc/sstring.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/inc/sstring.h b/inc/sstring.h
new file mode 100644
index 0000000..b11644a
--- /dev/null
+++ b/inc/sstring.h
@@ -0,0 +1,37 @@
+#ifndef LIBSPICY_SSTRING_H
+#define LIBSPICY_SSTRING_H
+
+#include <stdlib.h>
+
+typedef struct spicy_static_string
+{
+  size_t len;
+  char buf[65536];
+} sstring;
+
+// I'll put this in later maybe.
+// CBA to re-generate after git send-email somehow
+// lost all of this.
+
+int sassign(sstring* restrict dst, const sstring* restrict src);
+
+int cassign(sstring* restrict dst, const char* restrict src);
+
+size_t sstrlen(const sstring* str);
+
+int sassign(sstring* restrict dst, const sstring* restrict src);
+
+int cassign(sstring* restrict dst, const char* restrict src);
+
+int sUPPER(sstring* str);
+
+int slower(sstring* str);
+
+sstring spicycat(const size_t count, ...);
+
+sstring sstringup();
+
+
+
+
+#endif