uns favail, tavail, n;
favail = bdirect_read_prepare(f, &fptr);
- if (favail == (uns)EOF)
+ if (!favail)
die("bbcopy: source exhausted");
tavail = bdirect_write_prepare(t, &tptr);
n = MIN(l, favail);
l -= n;
}
}
+
+int
+bconfig(struct fastbuf *f, uns item, int value)
+{
+ return f->config ? f->config(f, item, value) : -1;
+}