next up previous
Next: CHR_TERM - Terminate a string by padding out with blanks
Up: Routine Descriptions
Previous: CHR_SORT - Sort an array of character variables into alphabetical order

CHR_SWAP  -  Swap two single-character variables

Description:
Exchange the values of two single-character variables.

Invocation:
CALL CHR_SWAP( CHAR1, CHAR2 )

Arguments:
CHAR1 = CHARACTER 1 (Given and Returned)
The first character.
CHAR2 = CHARACTER 1 (Given and Returned)
The second character.



next up previous
Next: CHR_TERM - Terminate a string by padding out with blanks
Up: Routine Descriptions
Previous: CHR_SORT - Sort an array of character variables into alphabetical order



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