~sircmpwn/scdoc

ref: c95b3ef042dfc1572d024e1ffc20620748b9b4c6 scdoc/include/str.h -rw-r--r-- 272 bytes
c95b3ef0Drew DeVault Update version to 1.10.0 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _SCDOC_STRING_H
#define _SCDOC_STRING_H
#include <stdint.h>

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

typedef struct str str_t;

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

#endif