X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fwrbuf.c;h=a7910b67d9e74f0aee5c5a344f5c723d25b4c5e4;hb=4ce7bffcae2b1faaa0fb5d74eca9aeeb7f6d0c6e;hp=2e8c4f73d63ae475b9683ac344aa8eec9802637c;hpb=3fec27d8561b3634b4c1c6e32f09395d9690509f;p=yaz-moved-to-github.git diff --git a/src/wrbuf.c b/src/wrbuf.c index 2e8c4f7..a7910b6 100644 --- a/src/wrbuf.c +++ b/src/wrbuf.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2008, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 Index Data * See the file LICENSE for details. - * - * $Id: wrbuf.c,v 1.23 2008-01-30 19:58:25 adam Exp $ */ /** @@ -80,6 +78,11 @@ int wrbuf_puts(WRBUF b, const char *buf) return 0; } +void wrbuf_vputs(const char *buf, void *client_data) +{ + wrbuf_write((WRBUF) client_data, buf, strlen(buf)); +} + int wrbuf_puts_replace_char(WRBUF b, const char *buf, const char from, const char to) { @@ -247,7 +250,7 @@ void wrbuf_cut_right(WRBUF b, size_t no_to_remove) void wrbuf_puts_escaped(WRBUF b, const char *str) { - return wrbuf_write_escaped(b, str, strlen(str)); + wrbuf_write_escaped(b, str, strlen(str)); } void wrbuf_write_escaped(WRBUF b, const char *str, size_t len)