Clicky

Fortran Wiki
len_trim

Description

Returns the length of a character string, ignoring any trailing blanks.

Standard

Fortran 95 and later, with kind argument Fortran 2003 and later

Class

Elemental function

Syntax

result = len_trim(string [, kind])

Arguments

  • string - Shall be a scalar of type character, with intent(in)
  • kind - (Optional) An integer initialization expression indicating the kind parameter of the result.

Return value

The return value is of type integer and of kind kind. If kind is absent, the return value is of default integer kind.

See also

len, adjustl, adjustr

category: intrinsics