File:  [CSRG BSD Unix] / 43BSDReno / share / man / man3f / index.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:57 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved.  The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\"	@(#)index.3f	6.1 (Berkeley) 5/15/85
.\"
.TH INDEX 3F "May 15, 1985"
.UC 5
.SH NAME
index, rindex, lnblnk, len \- tell about character objects
.SH SYNOPSIS
.B (intrinsic) function index (string, substr)
.br
.B character*(*) string, substr
.sp 1
.B integer function rindex (string, substr)
.br
.B character*(*) string, substr
.sp 1
.B function lnblnk (string)
.br
.B character*(*) string
.sp 1
.B (intrinsic) function len (string)
.br
.B character*(*) string
.SH DESCRIPTION
.I Index
.I (rindex)
returns the index of the first (last) occurrence of the substring
.I substr
in
.I string,
or zero if it does not occur.
.I Index
is an f77 intrinsic function;
.I rindex
is a library routine.
.PP
.I Lnblnk
returns the index of the last non-blank character in
.I string.
This is useful since all f77 character objects are fixed length, blank padded.
Intrinsic function
.I len
returns the size of the character object argument.
.SH FILES
.ie \nM /usr/ucb/lib/libF77.a
.el /usr/lib/libF77.a

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.