mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
fwrite() now tries to fill the write buffer as far is possible and will only resort to using the __putc() macros when necessary. This should improve write performance by quite a bit. If the write buffer happens to be empty and the number of bytes to write is at least as large as the write buffer, then fwrite() will directly call write(). This should improve write performance, too. If the file is in unbuffered mode, fwrite() now always calls write(), bypassing the write buffer altogether.