INDEX(3F) — FORTRAN LIBRARY ROUTINES
NAME
index, rindex, lnblnk, len − return index of occurrence of substring, or return length of string
SYNOPSIS
(intrinsic) function index (string, substr)
character∗(∗) string, substr integer function rindex (string, substr)
character∗(∗) string, substr function lnblnk (string)
character∗(∗) string (intrinsic) function len (string)
character∗(∗) string
DESCRIPTION
index(a1,a2) returns index of first occurrence of string a2 in string a1 , or zero if it does not occur.
rindex(a1,a2) returns index of last occurrence of string a2 in string a1 , or zero if it does not occur.
lnblnk( a1 ) returns the index of the last non-blank character in a1 . This is useful since all f77 character objects are fixed length, blank padded.
Note that the intrinsic function len returns the declared size of the character string argument.
FILES
libF77.a
Sun Release 4.1 — Last change: 12 June 1990