LNBLNK — Index of the last non-blank character in a string¶
- LNBLNK()¶
Returns the length of a character string, ignoring any trailing blanks. This is identical to the standard
LEN_TRIMintrinsic, and is only included for backwards compatibility.- Parameters
STRING – Shall be a scalar of type
CHARACTER, withINTENT(IN)- Returns
The return value is of
INTEGER(kind=4)type.
Standard:GNU extension
Class:Elemental function
Syntax:RESULT = LNBLNK(STRING)
See also:INDEX intrinsic, LEN_TRIM