LEN(3f)

DESCRIPTION
Returns the length of a character string. If STRING is an array, the length of an element of STRING is returned. Note that STRING need not be defined when this intrinsic is invoked, since only the length, not the content, of STRING is needed.

STANDARD
Fortran 77 and later, with KIND argument Fortran 2003 and later

CLASS
Inquiry function

SYNTAX
L = LEN(STRING [, KIND])

ARGUMENTS

STRING Shall be a scalar or array 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.

SPECIFIC NAMES

Name Argument Return type Standard LEN(STRING) CHARACTER INTEGER Fortran 77 and later

SEE ALSO
LEN_TRIM, ADJUSTL, ADJUSTR

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).