+void write_out(const char *b0, const char *b1)
+{
+ size_t sz = b1 - b0;
+ if (sz)
+ {
+ if (fwrite(b0, 1, sz, stdout) != sz)
+ {
+ fprintf(stderr, "yaz-iconv: write failed\n");
+ exit(8);
+ }
+ }
+}
+
+void convert(FILE *inf, yaz_iconv_t cd, int verbose)