Sujet : Re: Something like string-streams existing in "C"?
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 20. Dec 2024, 13:55:41
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20241220145541.0000158f@yahoo.com>
References : 1 2 3 4 5 6 7 8
User-Agent : Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
On Fri, 20 Dec 2024 08:32:24 -0300
Thiago Adams <
thiago.adams@gmail.com> wrote:
>
A function printing in a FILE* fprint also should be able to print in
a string stream.
Of course.
But I don't like your naming and semantics implied by the name.
It should be memory buffer stream rather than string stream.
I.e. zero characters should be allowed in the middle, zero termination
not guaranteed, fwrite and fputc should work as expected etc...