C/C++ Programmer's Guide (G06.25+)
HP C Implementation-Defined Behavior
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
A-2
Implementation-Defined Behavior of Native C
Implementation-Defined Behavior of Native C
The ISO standard for C allows implementations to vary in specific instances. This
subsection describes the implementation-defined behavior of native C. This
subsection corresponds to Annex G.3 of the ISO C standard or Appendix F of the ANSI
C standard.
G.3.1 Translation
The form of the diagnostic messages displayed by the native compilers is such that the
source line is first displayed, followed by a line that indicates the location, and, finally, a
line of the form: file name, line: diagnostic-type: diagnostic message. For example:
FILE *fp;)
^
“/usr/people/bj/test/c1.c”, line 2, error(114): identifier
“FILE” is undefined
G.3.2 Environment
The arguments to main() are treated as follows:
An interactive device is a video display terminal.
G.3.3 Identifiers
An identifier without external linkage has a maximum of 230 significant initial
characters.
An identifier with external linkage has a total of 127 significant characters.
Case distinctions are significant in an identifier with external linkage.
G.3.4 Characters
The shift states used for the encoding of multibyte characters are:
•
The number of bits in a character in the execution character set is 8, but only the
lower 7 are significant.
•
The mapping of characters of the source character set to members of the
execution character set is one to one.
•
There are no invalid characters or escape sequences in the basic execution
character set.
Argument Description
argv [0] the name of the executable file
argv [1] ... argv [argc-1] command line parameters
argv [argc] a null pointer