mirror of https://github.com/ddevault/scdoc
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
272 B
18 lines
272 B
7 years ago
|
#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
|