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 connectionsPath: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bart
Newsgroups: comp.lang.c
Subject: Re: Baby X is bor nagain
Date: Thu, 13 Jun 2024 16:32:01 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID:
References:
<20240613002933.000075c5@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 13 Jun 2024 17:32:02 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="67a186d3dfa54250815f91d60b152bd4";
logging-data="2453457"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/B5eimcz8R9STq8KULLTF"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+cY3bOj0gzVCtjdD65rhQns1cLM=
Content-Language: en-GB
In-Reply-To:
Bytes: 2296
On 13/06/2024 16:11, tTh wrote:
> On 6/13/24 15:46, bart wrote:
>>
>> Note that it is not necessary to use one giant string; you can chop it
>> up into smaller strings, say with one line's worth of values per
>> string, and still get most of the benefits. It's just a tiny bit more
>> fiddly to generate the strings.
>
> And what about the ending '\0' of all those small strings ?
>
What about it? If you specify the bounds of the char array, then a
terminator won't be added.
But I've now realised lots of shorter strings will make it awkward to
define the data (now a table of chars, with the last row being partially
full, making an exact size tricky).
It can only really work if the separate strings are concatenated into
one big string. This may still run into string length limitations, but
it depends on whether the limitation applies to individual strings
(which is OK), or to the sum of all the strings (which isn't).