X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fwrbuf.c;h=fe3065b5c1f6c66986b10213c1a84771794fd55c;hb=b925ea17d6f146a28d745b0d34e9eec6eafda21f;hp=f361f6b1b79874784a0aac1a2cc34d2fcdb38535;hpb=3a78b70f2e785e67e08b26c8e50101d10e054dbb;p=yaz-moved-to-github.git diff --git a/src/wrbuf.c b/src/wrbuf.c index f361f6b..fe3065b 100644 --- a/src/wrbuf.c +++ b/src/wrbuf.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: wrbuf.c,v 1.11 2006-07-07 10:31:26 marc Exp $ + * $Id: wrbuf.c,v 1.12 2006-08-28 12:34:41 adam Exp $ */ /** @@ -215,6 +215,13 @@ int wrbuf_iconv_puts(WRBUF b, yaz_iconv_t cd, const char *strz) return wrbuf_iconv_write(b, cd, strz, strlen(strz)); } +int wrbuf_iconv_putchar(WRBUF b, yaz_iconv_t cd, int ch) +{ + char buf[1]; + buf[0] = ch; + return wrbuf_iconv_write(b, cd, buf, 1); +} + 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);