17 lines
292 B
C
17 lines
292 B
C
#ifndef UNDAR_STRBUF_H
|
|
#define UNDAR_STRBUF_H
|
|
|
|
#include "list.h"
|
|
|
|
typedef struct strbuf_s StrBuf;
|
|
struct strbuf_s {
|
|
Node *head;
|
|
Node *tail;
|
|
u32 count;
|
|
};
|
|
|
|
StrBuf *StrBuf_init(Arena *a);
|
|
void *StrBuf_append(Arena *a, StrBuf *buf, char *str);
|
|
char *StrBuf_toS(Arena *a, StrBuf *buf);
|
|
|
|
#endif |