next up previous
Next: CHR_MTOE - Translate a string from the machine's character set to EBCDIC
Up: Routine Descriptions
Previous: CHR_MOVE - Move one string into another

CHR_MTOA  -  Translate a string from the machine's characters set to ASCII

Description:
The string STR1, encoded in the host machine's character set, is returned in STR2 translated into a form which can be written and subsequently read correctly by a machine which uses the ASCII character set.

Invocation:
CALL CHR_MTOA( STR1, STR2 )

Arguments:
STR1 = CHARACTER ( ) (Given)
A string represented by the host machine's character set.
STR2 = CHARACTER ( ) (Returned)
A string represented by the ASCII character set. If STR2 is shorter than STR1, the translated string will be truncated; if STR2 is longer than STR1, STR2 will be padded with blanks beyond the translated string.



next up previous
Next: CHR_MTOE - Translate a string from the machine's character set to EBCDIC
Up: Routine Descriptions
Previous: CHR_MOVE - Move one string into another



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