next up previous
Next: CHR_PFORM - Reformat a paragraph to a new width
Up: Routine Descriptions
Previous: CHR_NTH - Return the two-character ordinal abbreviation for a specified integer

CHR_OTOI  -  Read an INTEGER value from an octal string

Description:
The given octal string is decoded into an INTEGER value.

Invocation:
CALL CHR_OTOI( STRING, IVALUE, STATUS )

Arguments:
STRING = CHARACTER ( ) (Given)
String to be decoded.
IVALUE = INTEGER (Returned)
Value decoded from the given string.
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_PFORM - Reformat a paragraph to a new width
Up: Routine Descriptions
Previous: CHR_NTH - Return the two-character ordinal abbreviation for a specified integer



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