ze
Loading...
Searching...
No Matches
buffer.h
Go to the documentation of this file.
1
8#pragma once
9
14struct abuf {
15 char *b;
16 int len;
17};
18
20#define ABUF_INIT {NULL, 0}
21
27void abAppend(struct abuf *ab, const char *s, int len);
28
29void abFree(struct abuf *ab);
30
void abAppend(struct abuf *ab, const char *s, int len)
Append raw bytes to the dynamic append buffer.
Definition buffer.c:23
void abFree(struct abuf *ab)
Free the memory held by an append buffer.
Definition buffer.c:42
Definition buffer.h:14
char * b
Definition buffer.h:15
int len
Definition buffer.h:16