C/C++ Programmer's Guide (G06.25+)
HP C Implementation-Defined Behavior
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
A-17
G.3.4 Characters
G.3.4 Characters
There are no source and execution characters that are not explicitly specified by the
ISO/ANSI C Standard.
These are the escape sequence values produced for the listed sequences:
The HP NonStop operating system handles the shift states used for the encoding of
multi-byte characters; therefore, it is not applicable to list them here.
There are 8 bits in a character in the execution character set.
There is a one-to-one mapping of members of the source character sets (in character
and string literals) to members of the execution character set.
The value of an integer character constant, that contains a character or escape
sequence not represented in the basic execution character set or the extended
character set for a wide character constant, is -1.
When there is an integer character constant that contains more than one character or a
wide character constant that contains more than one multi-byte character, the compiler
concatenates the characters to form either a short or long integer, depending on the
length of the constant.
The C-locale is used to convert multi-byte characters into corresponding wide
characters for a wide character constant. A pointer to a copy of the locale is returned
by the function localeconv().
The equivalent type of a plain char is unsigned char.
Sequence Value
\a 007 alert (bell)
\b 008 backspace
\f 012 form feed
\n 010 new line
\r 013 carriage return
\t 009 horizontal tab
\v 011 vertical tab