Sujet : Re: Case Insensitive File Systems -- Torvalds Hates Them
De : rich (at) *nospam* example.invalid (Rich)
Groupes : comp.os.linux.miscDate : 08. May 2025, 02:44:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vvh2ar$1c1cf$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
The Natural Philosopher <
tnp@invalid.invalid> wrote:
On 07/05/2025 22:41, Richard Kettlewell wrote:
(Strings with nulls in are another matter, but not relevant to
filenames in Unix filesystems, and AFAIK not common anywhere
either.)
Well again, how do you process a Jpeg read into a program? Or a raw
disc sector, or a stream of comms containing binary data?
By using an array of bytes, not a C "string".
Ultimately C strings are not, unlike left wing 'progressive' politics,
or PASCAL types, something that is imposed on you. You have the choice.
But, a "C string" /is/ a byte array where ASCII null is 'special' in
that it denotes "end of string". Which is why a C string is the wrong
C type to use for a Jpeg, a raw disk sector, or a stream of comms
containing binary data.