blob: 9ac01d36e3e039a1021c4d4e6aee433b52ca6937 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include "config.h"
#define String(s) (s8){(u8*)s, lengthof(s)}
typedef struct {
u8 *buf;
size len;
} s8;
size txt_length(const char *text);
s8 create_s8(const size sz);
void free_s8(s8* str);
s8 cstr_to_s8(const char* str);
b32 equal_s8(const s8 one, const s8 other);
void add_s8(s8 dst, const s8 src, size* pos);
s8 load_file_text(const s8 path);
|