X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fbbuf.h;h=22e62bb0402a26d768fd3a1cceb8c666e07267dc;hb=d75e8af89c831ba37062d16a102871ef4f443457;hp=5ee6c1a5f5c99101c4a8fd41200afdd8e1c6b919;hpb=afb30b22c3c7242eb273ba05caef2b51f66ec84c;p=libucw.git diff --git a/lib/bbuf.h b/lib/bbuf.h index 5ee6c1a5..22e62bb0 100644 --- a/lib/bbuf.h +++ b/lib/bbuf.h @@ -1,5 +1,5 @@ /* - * A simple growing buffer for byte-sized items. + * UCW Library -- A simple growing buffer for byte-sized items. * * (c) 2004 Martin Mares * @@ -7,11 +7,16 @@ * of the GNU Lesser General Public License. */ -#ifndef _SHERLOCK_BBUF_H -#define _SHERLOCK_BBUF_H +#ifndef _UCW_BBUF_H +#define _UCW_BBUF_H #define GBUF_TYPE byte #define GBUF_PREFIX(x) bb_##x #include "lib/gbuf.h" +char *bb_vprintf(bb_t *bb, const char *fmt, va_list args); +char *bb_printf(bb_t *bb, const char *fmt, ...); +char *bb_vprintf_at(bb_t *bb, uns ofs, const char *fmt, va_list args); +char *bb_printf_at(bb_t *bb, uns ofs, const char *fmt, ...); + #endif