Commit | Line | Data |
---|---|---|
1 | #ifndef FIO_OUTPUT_BUFFER_H | |
2 | #define FIO_OUTPUT_BUFFER_H | |
3 | ||
4 | #include <stddef.h> | |
5 | ||
6 | struct buf_output { | |
7 | char *buf; | |
8 | size_t buflen; | |
9 | size_t max_buflen; | |
10 | }; | |
11 | ||
12 | void buf_output_init(struct buf_output *out); | |
13 | void buf_output_free(struct buf_output *out); | |
14 | size_t buf_output_add(struct buf_output *out, const char *buf, size_t len); | |
15 | ||
16 | #endif |