]> mj.ucw.cz Git - eval.git/blob - lib/bbuf.h
Added libucw from Sherlock v3.12.2.
[eval.git] / lib / bbuf.h
1 /*
2  *      UCW Library -- A simple growing buffer for byte-sized items.
3  *
4  *      (c) 2004 Martin Mares <mj@ucw.cz>
5  *
6  *      This software may be freely distributed and used according to the terms
7  *      of the GNU Lesser General Public License.
8  */
9
10 #ifndef _UCW_BBUF_H
11 #define _UCW_BBUF_H
12
13 #define GBUF_TYPE       byte
14 #define GBUF_PREFIX(x)  bb_##x
15 #include "lib/gbuf.h"
16
17 char *bb_vprintf(bb_t *bb, const char *fmt, va_list args);
18 char *bb_printf(bb_t *bb, const char *fmt, ...);
19 char *bb_vprintf_at(bb_t *bb, uns ofs, const char *fmt, va_list args);
20 char *bb_printf_at(bb_t *bb, uns ofs, const char *fmt, ...);
21
22 #endif