X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fwrbuf.c;h=e80f98a69e87b2d72b0b694c1f6bc00643f728ff;hb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0;hp=ce77914ed9c822baebe219919782f2415afebcde;hpb=0d6e26ddc9a74fb5668efb2a8c72d58a2f4ea770;p=yaz-moved-to-github.git diff --git a/src/wrbuf.c b/src/wrbuf.c index ce77914..e80f98a 100644 --- a/src/wrbuf.c +++ b/src/wrbuf.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, 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.22 2007-11-15 08:45:52 adam Exp $ */ /** @@ -213,6 +211,11 @@ int wrbuf_iconv_write_cdata(WRBUF b, yaz_iconv_t cd, const char *buf, int size) return wrbuf_iconv_write_x(b, cd, buf, size, 1); } +int wrbuf_iconv_puts_cdata(WRBUF b, yaz_iconv_t cd, const char *strz) +{ + return wrbuf_iconv_write_x(b, cd, strz, strlen(strz), 1); +} + void wrbuf_iconv_reset(WRBUF b, yaz_iconv_t cd) { if (cd)