From 95e239ee7700114c9ca6a1765d9bdd74241a1eb8 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Sat, 19 Mar 2011 21:02:53 +0100 Subject: bufprintf: Adding bufprintf --- com32/include/bufprintf.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 com32/include/bufprintf.h (limited to 'com32/include/bufprintf.h') diff --git a/com32/include/bufprintf.h b/com32/include/bufprintf.h new file mode 100644 index 00000000..5cbeaa4b --- /dev/null +++ b/com32/include/bufprintf.h @@ -0,0 +1,10 @@ +#define BUFPAD 4096 + +struct print_buf { + char *buf; + size_t len; + size_t size; +}; + +int vbufprintf(struct print_buf *buf, const char *format, va_list ap); +int bufprintf(struct print_buf *buf, const char *format, ...); -- cgit v1.2.1