Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rindex(3f) [bsd man page]

INDEX(3F)																 INDEX(3F)

NAME
index, rindex, lnblnk, len - tell about character objects 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 (rindex) returns the index of the first (last) occurrence of the substring substr in string, or zero if it does not occur. Index is an f77 intrinsic function; rindex is a library routine. Lnblnk returns the index of the last non-blank character in string. This is useful since all f77 character objects are fixed length, blank padded. Intrinsic function len returns the size of the character object argument. FILES
/usr/lib/libF77.a 4.2 Berkeley Distribution May 15, 1985 INDEX(3F)

Check Out this Related Man Page

INDEX(3)						     Linux Programmer's Manual							  INDEX(3)

NAME
index, rindex - locate character in string SYNOPSIS
#include <strings.h> char *index(const char *s, int c); char *rindex(const char *s, int c); DESCRIPTION
The index() function returns a pointer to the first occurrence of the character c in the string s. The rindex() function returns a pointer to the last occurrence of the character c in the string s. The terminating NULL character is considered to be a part of the strings. RETURN VALUE
The index() and rindex() functions return a pointer to the matched character or NULL if the character is not found. CONFORMING TO
4.3BSD; marked as LEGACY in POSIX.1-2001. POSIX.1-2008 removes the specifications of index() and rindex(), recommending strchr(3) and str- rchr(3) instead. SEE ALSO
memchr(3), strchr(3), string(3), strpbrk(3), strrchr(3), strsep(3), strspn(3), strstr(3), strtok(3) COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU
2010-09-20 INDEX(3)
Man Page