Sujet : Re: Buffer contents well-defined after fgets() reaches EOF ?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 21. Feb 2025, 06:58:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vp94lr$396e3$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Pan/0.162 (Pokrosvk)
On Fri, 14 Feb 2025 16:51:08 +0200, Michael S wrote:
Appending zero at the end also feels like a hack, but it is necessary
because of the main problem. And the main problem is: how the user is
supposed to figure out how many bytes were read?
You already have a function that answers that question.
<
https://manpages.debian.org/fread(3)>