]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/fortran/doc/gfortran/intrinsic-procedures/lnblnk.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / gcc / fortran / doc / gfortran / intrinsic-procedures / lnblnk.rst
1 ..
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.
5
6 .. index:: LNBLNK, string, find non-blank character
7
8 .. _lnblnk:
9
10 LNBLNK --- Index of the last non-blank character in a string
11 ************************************************************
12
13 .. function:: LNBLNK(STRING)
14
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.
18
19 :param STRING:
20 Shall be a scalar of type ``CHARACTER``,
21 with ``INTENT(IN)``
22
23 :return:
24 The return value is of ``INTEGER(kind=4)`` type.
25
26 Standard:
27 GNU extension
28
29 Class:
30 Elemental function
31
32 Syntax:
33 .. code-block:: fortran
34
35 RESULT = LNBLNK(STRING)
36
37 See also:
38 :ref:`index-intrinsic`,
39 :ref:`LEN_TRIM`