Vax C90-EL SERIES Service Manual Page 164

  • Download
  • Add to my manuals
  • Print
  • Page
    / 216
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 163
Cray Standard C/C++ Reference Manual
character constant can contain up to 8 characters. The integer value of a character
constant is the value of the characters packed into a word from left to right, with
the result right-justified, as shown in the following table:
Table 7. Packed Characters
Character constant Integer value
a 0x61
ab 0x6162
In a character constant or string literal, if an escape sequence is not recognized,
the \ character that initiates the escape sequence is ignored, as shown in the
following table:
Table 8. Unrecognizable Escape Sequences
Character constant Integer value Explanation
\a 0x7
Recognized as the ASCII BEL
character
\8 0x38
Not recognized; ASCII value for 8
\[ 0x5b
Not recognized; ASCII value for [
\c 0x63
Not recognized; ASCII value for c
10.1.2.4 Wide Characters
Wide characters are treated as signed 64-bit integer types. Wide character
constants cannot contain more than one multibyte character. Multibyte characters
in wide character constants and wide string literals are converted to wide
characters in the compiler by calling the mbtowc(3) function. The current locale
in effect at the time of compilation determines the method by which mbtowc(3)
converts multibyte characters to wide characters, and the shift states required
for the encoding of multibyte characters in the source code. If a wide character,
as converted from a multibyte character or as specified by an escape sequence,
cannot be represented in the extended execution character set, it is truncated.
144 S217936
Page view 163
1 2 ... 159 160 161 162 163 164 165 166 167 168 169 ... 215 216

Comments to this Manuals

No comments