LEN_TRIM — Length of a character entity without trailing blank characters¶
- LEN_TRIM()¶
Returns the length of a character string, ignoring any trailing blanks.
- Parameters
STRING – Shall be a scalar of type
CHARACTER, withINTENT(IN)KIND – (Optional) An
INTEGERinitialization expression indicating the kind parameter of the result.
- Returns
The return value is of type
INTEGERand of kindKIND. IfKINDis absent, the return value is of default integer kind.
Standard:Fortran 90 and later, with
KINDargument Fortran 2003 and laterClass:Elemental function
Syntax:RESULT = LEN_TRIM(STRING [, KIND])
See also:LEN, ADJUSTL, ADJUSTR