2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. index:: LNBLNK, string, find non-blank character
10 LNBLNK --- Index of the last non-blank character in a string
11 ************************************************************
13 .. function:: LNBLNK(STRING)
15 Returns the length of a character string, ignoring any trailing blanks.
16 This is identical to the standard ``LEN_TRIM`` intrinsic, and is only
17 included for backwards compatibility.
20 Shall be a scalar of type ``CHARACTER``,
24 The return value is of ``INTEGER(kind=4)`` type.
33 .. code-block:: fortran
35 RESULT = LNBLNK(STRING)
38 :ref:`index-intrinsic`,