Next: , Previous: LBOUND, Up: Intrinsic Procedures


6.115 LEN — Length of a character entity

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:
F77 and later
Class:
Inquiry function
Syntax:
L = LEN(STRING)
Arguments:

STRING Shall be a scalar or array of type CHARACTER(*), with INTENT(IN)

Return value:
The return value is an INTEGER of the default kind.
See also:
LEN_TRIM, ADJUSTL, ADJUSTR