|
|
1.1 root 1: .\" Copyright (c) 1983 Regents of the University of California.
2: .\" All rights reserved. The Berkeley software License Agreement
3: .\" specifies the terms and conditions for redistribution.
4: .\"
5: .\" @(#)index.3f 6.1 (Berkeley) 5/15/85
6: .\"
7: .TH INDEX 3F "May 15, 1985"
8: .UC 5
9: .SH NAME
10: index, rindex, lnblnk, len \- tell about character objects
11: .SH SYNOPSIS
12: .B (intrinsic) function index (string, substr)
13: .br
14: .B character*(*) string, substr
15: .sp 1
16: .B integer function rindex (string, substr)
17: .br
18: .B character*(*) string, substr
19: .sp 1
20: .B function lnblnk (string)
21: .br
22: .B character*(*) string
23: .sp 1
24: .B (intrinsic) function len (string)
25: .br
26: .B character*(*) string
27: .SH DESCRIPTION
28: .I Index
29: .I (rindex)
30: returns the index of the first (last) occurrence of the substring
31: .I substr
32: in
33: .I string,
34: or zero if it does not occur.
35: .I Index
36: is an f77 intrinsic function;
37: .I rindex
38: is a library routine.
39: .PP
40: .I Lnblnk
41: returns the index of the last non-blank character in
42: .I string.
43: This is useful since all f77 character objects are fixed length, blank padded.
44: Intrinsic function
45: .I len
46: returns the size of the character object argument.
47: .SH FILES
48: .ie \nM /usr/ucb/lib/libF77.a
49: .el /usr/lib/libF77.a
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.