Deutsch   English   Français   Italiano  
<20241220145541.0000158f@yahoo.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Michael S <already5chosen@yahoo.com>
Newsgroups: comp.lang.c
Subject: Re: Something like string-streams existing in "C"?
Date: Fri, 20 Dec 2024 14:55:41 +0200
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <20241220145541.0000158f@yahoo.com>
References: <vjvsvb$2i07u$1@dont-email.me>
	<vk179b$2s9oa$1@bluemanedhawk.eternal-september.org>
	<20241219114135.611@kylheku.com>
	<20241219220435.00001140@yahoo.com>
	<20241219140545.869@kylheku.com>
	<vk2jtp$34hel$1@dont-email.me>
	<20241220130056.000029e4@yahoo.com>
	<vk3kk8$3dt6g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 20 Dec 2024 13:55:45 +0100 (CET)
Injection-Info: dont-email.me; posting-host="cd72757de727eb0edb19146209da36f1";
	logging-data="3577881"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19c7BR6hH0uXJj5P5H/3uEcytOSUa7qh2Y="
Cancel-Lock: sha1:vcq7Agh2Wp4QNqr5yi/NO3pb+oI=
X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
Bytes: 1687

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...