HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11 635
TRIM(STRING)
Description
Returns the argument with trailing blank characters removed.
Class
Transformational function.
Argument
STRING must be of type character and must be a scalar.
Result type/
type parameters
Character with the same kind type parameter value as STRING and with a length that is the
length of STRING less the number of trailing blanks in STRING.
Result value
The value of the result is the same as STRING except any trailing blanks are removed. If
STRING contains no nonblank characters, the result has zero length.
UBOUND(ARRAY, DIM)
Optional argument
DIM
Description
Returns all the upper bounds of an array or a specified upper bound.
Class
Inquiry function.