~sircmpwn/scdoc

scdoc/include/str.h -rw-r--r-- 265 bytes
7bdbb5ba — Sebastian Disallows differing row lengths in table 18 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _SCDOC_STRING_H
#define _SCDOC_STRING_H
#include <stdint.h>

struct str {
	char *str;
	size_t len, size;
};

struct str *str_create();
void str_free(struct str *str);
void str_reset(struct str *str);
int str_append_ch(struct str *str, uint32_t ch);

#endif