next up previous
Next: CHR_ITOO - Write an octal string from an INTEGER value
Up: Routine Descriptions
Previous: CHR_ITOC - Encode an INTEGER value as a string

CHR_ITOH  -  Write a hexadecimal string from an INTEGER value

Description:
Encode an INTEGER value into a hexadecimal string using the machine's character set. The result is right-justified in the returned string. In the event of an error, ''s are written to the string.

Invocation:
CALL CHR_ITOH( IVALUE, STRING, STATUS )

Arguments:
IVALUE = INTEGER (Given)
Value to be encoded.
STRING = CHARACTER ( ) (Returned)
Hexadecimal string encoded from the given value.
STATUS = INTEGER (Given and Returned)
The status value. If this value is not SAI__OK on input, the routine returns without action. If the routine fails to complete successfully, STATUS is returned set to SAI__ERROR.

Notes:
This subroutine assumes a 32-bit, twos-complement representation of an INTEGER.



next up previous
Next: CHR_ITOO - Write an octal string from an INTEGER value
Up: Routine Descriptions
Previous: CHR_ITOC - Encode an INTEGER value as a string



CHR Character Handling Routines
Starlink User Note 40
A C Charles
P C T Rees
A J Chipperfield
2 August 1995
E-mail:ussc@star.rl.ac.uk