sorta kinda working on strings for cmenu. being lazy
This commit is contained in:
+10
@@ -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);
|
||||
Reference in New Issue
Block a user