2 * Sherlock Library -- Printf on Fastbuf Streams
4 * (c) 2002 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
11 #include "lib/fastbuf.h"
16 vbprintf(struct fastbuf *b, byte *msg, va_list args)
24 r = vsnprintf(buf, len, msg, args);
38 bprintf(struct fastbuf *b, byte *msg, ...)
44 res = vbprintf(b, msg, args);
53 struct fastbuf *b = bfdopen_shared(1, 65536);
54 bprintf(b, "13=%d str=<%s> msg=%m\n", 13, "str");