~sircmpwn/scdoc

ref: e2794c96be81352d2af6c6648b7ee208d298b7fb scdoc/include/str.h -rw-r--r-- 265 bytes
e2794c96Drew DeVault Replace str_t with struct str 2 years 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