return number of bytes output

This commit is contained in:
rsc 2006-07-02 15:24:56 +00:00
parent 5885bf4c91
commit f9b88a7b9c

View file

@ -32,8 +32,7 @@ Bvprint(Biobuf *bp, char *fmt, va_list arg)
fmtlocaleinit(&f, nil, nil, nil);
n = fmtvprint(&f, fmt, arg);
bp->ocount = (char*)f.to - (char*)f.stop;
if(n == 0)
n = f.nfmt;
return n;
}