sorta kinda working on strings for cmenu. being lazy

This commit is contained in:
Ivar Fatland
2026-07-23 00:18:08 +02:00
parent afda89797a
commit a7507bb431
6 changed files with 157 additions and 8 deletions
+10
View File
@@ -0,0 +1,10 @@
#include <stddef.h>
typedef struct String {
unsigned char const *buffer;
size_t size;
} String;
#define STRING(content) ((String){.buffer=#content, .size=sizeof(#content)-1})
bool StringSub(String string, int start, int end, String *out_substr);