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