wchar_t values

Erik M. van der Poel erik at sra.co.jp
Fri Mar 29 11:00:09 AEST 1991


ANSI C says the following about wchar_t:

    ... an integral type whose range of values can represent distinct
    codes for all members of the largest extended character set specified
    among the supported locales; the null character shall have the code
    value zero and each member of the basic character set defined in 2.2.1
    shall have a code value equal to its value when used as the lone
    character in an integer character constant.

Now, if this question has been asked before, I apologize. But here
goes:

Which of the following two conditions is the correct interpretation of
the ANSI C standard:

	('c' == L'c')

	('c' == ((char) L'c'))
-
-- 
Erik M. van der Poel                                      erik at sra.co.jp
Software Research Associates, Inc., Tokyo, Japan     TEL +81-3-3234-2692



More information about the Comp.std.c mailing list