wchar_t values

Norman Diamond diamond at jit345.swstokyo.dec.com
Fri Mar 29 17:39:17 AEST 1991


In article <990 at sranha.sra.co.jp> erik at sra.co.jp (Erik M. van der Poel) writes:

>Which of the following two conditions is the correct interpretation of
>the ANSI C standard:
>	('c' == L'c')
>	('c' == ((char) L'c'))

Both must be true.  However, if you try it with @ instead of c, or with
any other character which is not in the basic character set defined in
section 2.2.1, then all bets are off.

(Recall that '@' does not even have to compare equal to ((char) '@'), with
no use of wide characters at all.)
--
Norman Diamond       diamond at tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.



More information about the Comp.std.c mailing list