XL Fortran for AIX 8.1

Language Reference


LEN_TRIM(STRING)

Returns the length of the character argument without counting trailing blank characters.

STRING
must be of type character.

Class

Elemental function

Result Type and Attributes

Default integer.

Result Value

The result has a value equal to the number of characters remaining after any trailing blanks in STRING are removed. If the argument contains no nonblank characters, the result is zero.

Examples

LEN_TRIM (' A B ') has the value 4. LEN_TRIM ('  ') has the value 0.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]