next up previous
Next: CHR_CTOD - Read a DOUBLE PRECISION value from a string
Up: Routine Descriptions
Previous: CHR_COPY - Copy one string to anotherchecking for truncation

CHR_CTOC  -  Write a CHARACTER string into another string

Description:
Write the given character string into the returned character string. If the given string is longer than the returned string, the given string is truncated. If the returned string is longer than the given character variable, the remainder of the returned string is padded with blanks.

Invocation:
CALL CHR_CTOC( STR1, STR2, NCHAR )

Arguments:
STR1 = CHARACTER ( ) (Given)
The value to be written.
STR2 = CHARACTER ( ) (Returned)
The character string into which the value is to be written.
NCHAR = INTEGER (Returned)
The resulting length of the character string, ignoring trailing blanks.



next up previous
Next: CHR_CTOD - Read a DOUBLE PRECISION value from a string
Up: Routine Descriptions
Previous: CHR_COPY - Copy one string to anotherchecking for truncation



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