random cmenu stuff

This commit is contained in:
2026-09-22 22:46:53 +02:00
parent 123529d03f
commit 6776883aa5
3 changed files with 15 additions and 17 deletions
+5 -1
View File
@@ -1,4 +1,7 @@
#ifndef STRING_HEADER
#define STRING_HEADER
#include <stddef.h>
#include <stdbool.h>
typedef struct String {
unsigned char const *buffer;
@@ -8,4 +11,5 @@ typedef struct String {
#define STRING(content) ((String){.buffer=#content, .size=sizeof(#content)-1})
bool StringSub(String string, int start, int end, String *out_substr);
String StringFromCString(char const *s);
String StringFromCString(unsigned char const *s);
#endif// STRING_HEADER