summaryrefslogtreecommitdiff
path: root/buffer.h
blob: 7761f6c1420d01b0140d2ea735f370761f8df79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _BUFFER_H
#define _BUFFER_H

struct append_buffer {
	char* buffer;
	int length;
};

#define ABUF_INIT { NULL, 0 }

void ab_append(struct append_buffer* ab, const char* string, int length);
void ab_free(struct append_buffer* ab);

#endif