Deutsch   English   Français   Italiano  
<v4f3dh$2aruh$1@dont-email.me>

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: bart <bc@freeuk.com>
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: <v4f3dh$2aruh$1@dont-email.me>
References: <v494f9$von8$1@dont-email.me>
 <v49seg$14cva$1@raubtier-asyl.eternal-september.org>
 <v49t6f$14i1o$1@dont-email.me>
 <v4bcbj$1gqlo$1@raubtier-asyl.eternal-september.org>
 <v4bh56$1hibd$1@dont-email.me> <v4c0mg$1kjmk$1@dont-email.me>
 <v4c8s4$1lki1$4@dont-email.me> <20240613002933.000075c5@yahoo.com>
 <v4emki$28d1b$1@dont-email.me> <v4et7o$29ejt$1@dont-email.me>
 <v4f27t$1ir3$1@news.gegeweb.eu>
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: <v4f27t$1ir3$1@news.gegeweb.eu>
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).