From b82890c8576824420f475b1cd4088af97e508601 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 4 Feb 2025 07:21:33 +0000 Subject: And of course I didn't offline save this... --- inc/sstring.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 inc/sstring.h 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 + +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 -- cgit 1.4.1-2-gfad0