next up previous
Next: CHR_CLEAN - Remove all unprintable characters from a string
Up: Routine Descriptions
Previous: CHR_ATOM - Translate a string from ASCII to the machine's character set

CHR_BTOI  -  Read an INTEGER value from a binary string

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

Invocation:
CALL CHR_BTOI( STRING, IVALUE, STATUS )

Arguments:
STRING = CHARACTER ( ) (Given)
String to be decoded, e.g. '10101100'.
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_CLEAN - Remove all unprintable characters from a string
Up: Routine Descriptions
Previous: CHR_ATOM - Translate a string from ASCII to the machine's character set



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