HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11560
Class
Elemental function.
Arguments
I must be of type integer.
POS must be of type integer. It must be nonnegative and less than BIT_SIZE(I).
Result type/
type parameters
Same as I.
Result value
The result has the value of the sequence of bits of I, except that bit POS of I is set to one. The
model for the interpretation of an integer value as a sequence of bits is in “The Bit Model” on
page 508.
Specific forms
HBSET, IIBSET,JIBSET,KIBSET.
ICHAR(C)
Description
Returns the position of a character in the processor collating sequence associated with the
kind type parameter of the character.
Class
Elemental function.
Argument
C must be of type character and of length one. Its value must be that of a character capable of
representation in the processor.
Result type/
type parameters
Default integer.