next up previous
Next: CHR_PUTC - Put a CHARACTER string into another at a given position
Up: Routine Descriptions
Previous: CHR_PFORM - Reformat a paragraph to a new width

CHR_PREFX  -  Prefix a string with a substring

Description:
The substring STR1 is prefixed to the string STR2, moving the string STR2 along to make room. The given string in STR2 may be truncated by adding the prefix. The final length of the string STR2, ignoring trailing blanks, is returned in LEN2.

Invocation:
CALL CHR_PREFX( STR1, STR2, LEN2 )

Arguments:
STR1 = CHARACTER ( ) (Given)
The prefix string.
STR2 = CHARACTER ( ) (Given and Returned)
The string to be prefixed.
LEN2 = INTEGER (Returned)
The resultant length of the string STR2, ignoring trailing blanks.



next up previous
Next: CHR_PUTC - Put a CHARACTER string into another at a given position
Up: Routine Descriptions
Previous: CHR_PFORM - Reformat a paragraph to a new width



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