INDEX(3F) — FORTRAN LIBRARY ROUTINES
NAME
index, rindex, lnblnk, len − return index or length of substring
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.
The intrinsic function len returns the declared size of the character string argument.
FILES
libF77.a
Sun Release 4.1 — Last change: 28 October 1991