Sujet : Re: Buffer contents well-defined after fgets() reaches EOF ?
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 15. Feb 2025, 18:29:11
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250215192911.0000793d@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
On Fri, 14 Feb 2025 20:51:38 +0100
Janis Papanagnou <janis_papanagnou+
ng@hotmail.com> wrote:
Actually, in the same code, I'm also using the strtok() function
strtok() is one of the relatively small set of more problemetic
functions in C library that are not thread-safe.
If you only care about POSIX target, the I'd reccomend to avoid strtok
and to use strtok_r().