random cmenu stuff
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user