Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ index(3F) — Sun FORTRAN 1.3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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

/usr/lang/SC0.0/libF77.a

Sun Release 4.1  —  Last change: 13 November 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026