Sujet : Re: multi bytes character - how to make it defined behavior?
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 14. Aug 2024, 01:33:46
Autres entêtes
Organisation : None to speak of
Message-ID : <87sev8eydx.fsf@nosuchdomain.example.com>
References : 1 2
User-Agent : Gnus/5.13 (Gnus v5.13)
Bart <
bc@freeuk.com> writes:
[...]
What exactly do you mean by multi-byte characters? Is it a literal
such as 'ABCD'?
>
I've no idea what C makes of that,
It's a character constant of type int with an implementation-defined
value. Read the section on "Character constants" in the C standard
(6.4.4.4 in C17).
(With gcc, its value is 0x41424344, but other compilers can and do
behave differently.)
We discussed this at some length several years ago.
[...]
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */