summaryrefslogtreecommitdiff
path: root/buffer.h
blob: 474202ebba44c5511250744b4607edb50d5b0643 (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

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);