comparison help2html/buffer.h @ 0:13d2b8934445

Import AnaGram (near-)release tree into Mercurial.
author David A. Holland
date Sat, 22 Dec 2007 17:52:45 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:13d2b8934445
1 struct buffer {
2 char *text;
3 size_t len;
4 size_t allocsize;
5
6 /* structural invariant: text[len]==0 */
7 };
8
9 void buffer_init(struct buffer *);
10 void buffer_cleanup(struct buffer *);
11
12 void buffer_append(struct buffer *, const char *);
13 void buffer_add(struct buffer *, int ch);
14 void buffer_start(struct buffer *, int ch);
15 void buffer_clear(struct buffer *);
16
17