HPlogo HP C/HP-UX Reference Manual: Version A.05.55.02 > Chapter 10 HP C/HP-UX Implementation Topics

Lexical Elements

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

  • Identifiers: 255 characters are significant in internal and external names.

  • Character Constants: Any character constant of more than one character produces a warning. The value of an integral character constant containing more than one character is computed by concatenating the 8-bit ASCII code values of the characters, with the leftmost character being the most significant. For example, the character constant 'AB' has the value 256*'A'+'B' = 256*65+66 = 16706. Only the rightmost four characters participate in the computation.

  • The case of alphabetic characters is always significant in external names.

  • The execution character set and the source character set are both ASCII.

  • Nonprinting characters in character constants and string literals must be represented as escape sequences.

© Hewlett-Packard Development Company, L.P.