BSD 4_2 development
[unix-history] / usr / man / man3 / index.3f
CommitLineData
3b9e8f30
C
1.TH INDEX 3F "13 June 1983"
2.UC 4
3.SH NAME
4index, rindex, lnblnk, len \- tell about character objects
5.SH SYNOPSIS
6.B (intrinsic) function index (string, substr)
7.br
8.B character*(*) string, substr
9.sp 1
10.B integer function rindex (string, substr)
11.br
12.B character*(*) string, substr
13.sp 1
14.B function lnblnk (string)
15.br
16.B character*(*) string
17.sp 1
18.B (intrinsic) function len (string)
19.br
20.B character*(*) string
21.SH DESCRIPTION
22.I Index
23.I (rindex)
24returns the index of the first (last) occurrence of the substring
25.I substr
26in
27.I string,
28or zero if it does not occur.
29.I Index
30is an f77 intrinsic function;
31.I rindex
32is a library routine.
33.PP
34.I Lnblnk
35returns the index of the last non-blank character in
36.I string.
37This is useful since all f77 character objects are fixed length, blank padded.
38Intrinsic function
39.I len
40returns the size of the character object argument.
41.SH FILES
42.ie \nM /usr/ucb/lib/libF77.a
43.el /usr/lib/libF77.a