Sujet : Re: Buffer contents well-defined after fgets() reaches EOF ?
De : noone (at) *nospam* noone.net (Andrey Tarasevich)
Groupes : comp.lang.cDate : 10. Feb 2025, 02:06:02
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vobjdt$t5ka$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On Sun 2/9/2025 3:52 PM, Lawrence D'Oliveiro wrote:
On Sat, 8 Feb 2025 23:12:44 -0800, Andrey Tarasevich wrote:
If `fgets` reads nothing (instant end-of-file), the entire buffer
remains untouched.
You mean, only a single null byte gets written.
No. The buffer is not changed at all in such case.
-- Best regards,Andrey