Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-F2E85FBE-3C57-435D-BD42-E30C423EF0C9
Visible to Intel only — GUID: GUID-F2E85FBE-3C57-435D-BD42-E30C423EF0C9
LNBLNK
Portability Function: Locates the position of the last nonblank character in a string.
Module
USE IFPORT
result = LNBLNK (string)
string |
(Input) Character*(*). String to be searched. Cannot be an array. |
Results
The result type is INTEGER(4). The result is the index of the last nonblank character in string.
LNBLNK is very similar to the intrinsic function LEN_TRIM, except that string cannot be an array.
Example
USE IFPORT integer(4) p p = LNBLNK(' GOOD DAY ') ! returns 9 p = LNBLNK(' ') ! returns 0