blob: fdf0c52e6adc8917f612d8c14d0950d355067b8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef BUF_H
#define BUF_H
#include <stddef.h>
struct buf {
size_t sz, cap;
char *buf;
};
void buf_init(struct buf *, size_t);
void buf_grow(struct buf *, size_t);
void buf_free(struct buf *);
#endif
|