next up previous
Next: CHR_CTOR - Read a REAL value from a string
Up: Routine Descriptions
Previous: CHR_CTOI - Read an INTEGER value from a string

CHR_CTOL  -  Read a LOGICAL value from a string

Description:
The given string is decoded as a logical value. TRUE, T, YES, Y and FALSE, F, NO, N are recognised, regardless of case. Other strings result in STATUS being set to SAI__ERROR.

Invocation:
CALL CHR_CTOL( STRING, LVALUE, STATUS )

Arguments:
STRING = CHARACTER ( ) (Given)
The string from which a LOGICAL value is to be read.
LVALUE = LOGICAL (Returned)
The resulting LOGICAL 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_CTOR - Read a REAL value from a string
Up: Routine Descriptions
Previous: CHR_CTOI - Read an INTEGER 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