interpret/src/text.h

12 lines
254 B
C
Raw Normal View History

2022-12-27 02:31:08 -05:00
#include <stddef.h>
#ifndef HAVE_CHAR_ARRAY
struct char_array { char *data; size_t size, capacity; };
#endif
struct text { struct char_array a; };
struct text text(void);
void text_(struct text *);
char *text_append_file(struct text *, const char *);