*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> index (3)              
Title
Content
Arch
Section
 

INDEX(3)

Contents


NAME    [Toc]    [Back]

       index, rindex - locate character in string

SYNOPSIS    [Toc]    [Back]

       #include <string.h>

       char *index(const char *s, int c);

       char *rindex(const char *s, int c);

DESCRIPTION    [Toc]    [Back]

       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    [Toc]    [Back]

       The index() and rindex() functions return  a  pointer  to  the  matched
       character or NULL if the character is not found.

CONFORMING TO    [Toc]    [Back]

       BSD 4.3

SEE ALSO    [Toc]    [Back]

      
      
       memchr(3),  strchr(3),  strpbrk(3),  strrchr(3),  strsep(3), strspn(3),
       strstr(3), strtok(3)



GNU				  1993-04-12			      INDEX(3)
[ Back ]
 Similar pages
Name OS Title
strrchr OpenBSD locate last occurrence of a character in a string
strchr OpenBSD locate first occurrence of a character in a string
rindex OpenBSD locate last occurrence of a character in a string
index OpenBSD locate first occurrence of a character in a string
wcsstr Linux locate a substring in a wide-character string
strstr NetBSD locate a substring in a string
strcasestr FreeBSD locate a substring in a string
strnstr FreeBSD locate a substring in a string
strstr FreeBSD locate a substring in a string
strstr OpenBSD locate a substring in a string
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service