index(3F)

index - return location of FORTRAN substring

As shipped in IRIX 6.5. First release of IRIX 6.5.

NAME
     index - return location of FORTRAN substring

SYNOPSIS
     character*N1 ch1
     character*N2 ch2
     integer i

     i = index(ch1, ch2)

DESCRIPTION
     The result of index is an integer value indicating the position in the
     first argument of the first substring which is identical to the second
     argument.  The result of index('ABCDEF','CD'), for example, would be 3.
     If no substring of the first argument matches the second argument, the
     result is zero.  index returns the result type integer*2 if the -i2
     compile option is in effect; otherwise, the result type is integer*4.