11 lines
251 B
C
11 lines
251 B
C
#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);
|