Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <20241219140545.869@kylheku.com>
Deutsch   English   Français   Italiano  
<20241219140545.869@kylheku.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: Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups: comp.lang.c
Subject: Re: Something like string-streams existing in "C"?
Date: Thu, 19 Dec 2024 22:06:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20241219140545.869@kylheku.com>
References: <vjvsvb$2i07u$1@dont-email.me>
 <vk179b$2s9oa$1@bluemanedhawk.eternal-september.org>
 <20241219114135.611@kylheku.com> <20241219220435.00001140@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 19 Dec 2024 23:06:10 +0100 (CET)
Injection-Info: dont-email.me; posting-host="72191784c5a1a8087c2b097a17bb7c34";
	logging-data="3211472"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/J2WKeI5LcZbZzffcAA9VZWrtXbSCfwUE="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:A+7ZM+EKLk09nHCApyQSOQhaVnM=
Bytes: 2037

On 2024-12-19, Michael S <already5chosen@yahoo.com> wrote:
> On Thu, 19 Dec 2024 19:47:28 -0000 (UTC)
> Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>
>> On 2024-12-19, BlueManedHawk <bluemanedhawk@invalid.invalid> wrote:
>> > The ‘asprintf’ subroutine is standardized by POSIX.1-2024, meaning
>> > that you can use it now and blame somebody else if it doesn't work.
>> >  If you   
>> 
>> Regardless of how it is made visible, you can detect it via a compile
>> test in a configure script, and provide your own if it wasn't found:
>> 
>> #if !HAVE_ASPRINTF
>> 
>> int asprintf(char **out, const char *fmt, ...)
>> {
>>   ... // more or less trivial to implement using malloc, realloc and
>>   vsprintf
>
> Don't you mean, vsnprintf ?

That detail will become obvious when you try to implement it.

-- 
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca