Sujet : Re: Baby X is bor nagain
De : bc (at) *nospam* freeuk.com (bart)
Groupes : comp.lang.cDate : 13. Jun 2024, 16:32:01
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4f3dh$2aruh$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla Thunderbird
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).