LNBLNK (The GNU Fortran Compiler)

### 8.184 `LNBLNK` — Index of the last non-blank character in a string ¶

Synopsis:

  `RESULT = LNBLNK(STRING)`

Description:

  Returns the length of a character string, ignoring any trailing blanks. This is identical to the standard `LEN_TRIM` intrinsic, and is only included for backwards compatibility.

Class:

  Elemental function

Arguments:

  STRING | Shall be a scalar of type `CHARACTER`, with `INTENT(IN)`

Return value:

  The return value is of `INTEGER(kind=4)` type.

Standard:

  GNU extension

See also:

  `INDEX` — Position of a substring within a string,
  `LEN_TRIM` — Length of a character entity without trailing blank characters