Sujet : Re: Buffer contents well-defined after fgets() reaches EOF ?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 10. Feb 2025, 00:52:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vobf3h$sefh$2@dont-email.me>
References : 1 2 3
User-Agent : Pan/0.161 (Chasiv Yar; )
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.