about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLuna <[email protected]>2025-02-04 07:21:33 +0000
committerRen Kararou <[email protected]>2025-02-04 02:23:58 -0600
commitb82890c8576824420f475b1cd4088af97e508601 (patch)
tree8f36bc0cee1cc7643df1903b5225b6b1d51df103
parentba6c8b0e4c3db5c0339f9d9686adf37d2a309f32 (diff)
downloadlibspicy-b82890c8576824420f475b1cd4088af97e508601.tar.gz
libspicy-b82890c8576824420f475b1cd4088af97e508601.tar.bz2
libspicy-b82890c8576824420f475b1cd4088af97e508601.zip
And of course I didn't offline save this...
-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