mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
return number of bytes output
This commit is contained in:
parent
5885bf4c91
commit
f9b88a7b9c
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue