Description:
This routine tidies up
a character string and returns its length ignoring trailing blanks. If the returned length is 0 the
returned string will be ’’, otherwise it will be equal to the input string truncated at the used
length.
The tidying involves:-
-
calling CHR_CLEAN to remove non-printable characters.
-
replacing all HT (tab) characters by spaces.
-
truncating the string at the character before a COMCHAR character, if present
(the characters after COMCHAR are assumed to be comments).
Invocation
CALL SCULIB_TIDY_LINE (COMCHAR, LINE, LENGTH)
Arguments
COMCHAR =
CHARACTER1
(Given)
the character at the beginning of a comment
LINE =
CHARACTER()
(Given and returned)
the line to be tidied
LENGTH = INTEGER (Returned)
the length of the
string, ignoring trailing blanks
Copyright
Copyright ©1995,1996,1997,1998,1999 Particle Physics
and Astronomy Research Council. All Rights Reserved.