next up previous
Next: CHR_INDEX - Return the index of a substring in a string
Up: Routine Descriptions
Previous: CHR_HTOI - Read an INTEGER value from a hexadecimal string

CHR_IACHR  -  Return the ASCII value for the given character

Description:
The given character, encoded using the machine's character set, is converted to an integer indicating its position in the ASCII character set. If no such character exists, zero is returned.

Invocation:
RESULT = CHR_IACHR( CVALUE )

Arguments:
CVALUE = CHARACTER 1 (Given)
The character to be converted to its position within the ASCII character set.

Returned Value:
CHR_IACHR = INTEGER
An integer position within the ASCII character set.



next up previous
Next: CHR_INDEX - Return the index of a substring in a string
Up: Routine Descriptions
Previous: CHR_HTOI - Read an INTEGER value from a hexadecimal 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