next up previous
Next: CHR_CTOL - Read a LOGICAL value from a string
Up: Routine Descriptions
Previous: CHR_CTOD - Read a DOUBLE PRECISION value from a string

CHR_CTOI  -  Read an INTEGER value from a string

Description:
Read an INTEGER value from the given character string.

Invocation:
CALL CHR_CTOI( STRING, IVALUE, STATUS )

Arguments:
STRING = CHARACTER ( ) (Given)
The string from which an INTEGER value is to be read.
IVALUE = INTEGER (Returned)
The resulting INTEGER 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 does not complete successfully, STATUS is returned set to SAI__ERROR.



next up previous
Next: CHR_CTOL - Read a LOGICAL value from a string
Up: Routine Descriptions
Previous: CHR_CTOD - Read a DOUBLE PRECISION value from 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