]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
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:: LEN_TRIM, string, length, without trailing whitespace | |
7 | ||
8 | .. _len_trim: | |
9 | ||
10 | LEN_TRIM --- Length of a character entity without trailing blank characters | |
11 | *************************************************************************** | |
12 | ||
13 | .. function:: LEN_TRIM(STRING , KIND) | |
14 | ||
15 | Returns the length of a character string, ignoring any trailing blanks. | |
16 | ||
17 | :param STRING: | |
18 | Shall be a scalar of type ``CHARACTER``, | |
19 | with ``INTENT(IN)`` | |
20 | ||
21 | :param KIND: | |
22 | (Optional) An ``INTEGER`` initialization | |
23 | expression indicating the kind parameter of the result. | |
24 | ||
25 | :return: | |
26 | The return value is of type ``INTEGER`` and of kind :samp:`{KIND}`. If | |
27 | :samp:`{KIND}` is absent, the return value is of default integer kind. | |
28 | ||
29 | Standard: | |
30 | Fortran 90 and later, with :samp:`{KIND}` argument Fortran 2003 and later | |
31 | ||
32 | Class: | |
33 | Elemental function | |
34 | ||
35 | Syntax: | |
36 | .. code-block:: fortran | |
37 | ||
38 | RESULT = LEN_TRIM(STRING [, KIND]) | |
39 | ||
40 | See also: | |
41 | :ref:`LEN`, | |
42 | :ref:`ADJUSTL`, | |
43 | :ref:`ADJUSTR` |