[PATCH v2] libio: Add test case for fflush

Florian Weimer fweimer@redhat.com
Thu Nov 7 10:40:21 GMT 2024


* Frederic Berat:

>> That's the only value 2 in the test, and it's using fgetc, not fgets?
>
> Correct, the difference with my original test resides in the content
> size of the file, here I tried with the source code, which has a size
> of 1424 bytes, while in my original test, the text file had a size of
> 3 bytes.  My original assumption was that there was a difference by 1,
> but actually with fgets, the position seems to be set to file
> (buffer?) content size - 1.

After the fflush or before the fflush?  Again, without the actual test
you are looking at, it's difficult to help you.

Thanks,
Florian



More information about the Libc-alpha mailing list