search for: pu_len

Displaying 1 result from an estimated 1 matches for "pu_len".

Did you mean: pm_len
2014 Apr 09
0
[klibc:master] fwrite: use memrchr() to find the final ' \n' in _IOLBF mode
...nsertions(+), 9 deletions(-) diff --git a/usr/klibc/stdio/fwrite.c b/usr/klibc/stdio/fwrite.c index 5d2c3f0..71ee75c 100644 --- a/usr/klibc/stdio/fwrite.c +++ b/usr/klibc/stdio/fwrite.c @@ -59,6 +59,7 @@ size_t _fwrite(const void *buf, size_t count, FILE *file) size_t bytes = 0; size_t pf_len, pu_len; const char *p = buf; + const char *q; /* We divide the data into two chunks, flushed (pf) and unflushed (pu) depending on buffering mode @@ -67,23 +68,16 @@ size_t _fwrite(const void *buf, size_t count, FILE *file) switch (f->bufmode) { case _IOFBF: pf_len = 0; - pu_len = cou...