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

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

STRCHR(3)

Contents


NAME    [Toc]    [Back]

       strchr, strrchr - locate character in string

SYNOPSIS    [Toc]    [Back]

       #include <string.h>

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

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

DESCRIPTION    [Toc]    [Back]

       The  strchr() function returns a pointer to the first occurrence of the
       character c in the string s.

       The strrchr() function returns a pointer to the last occurrence of  the
       character c in the string s.

RETURN VALUE    [Toc]    [Back]

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

CONFORMING TO    [Toc]    [Back]

       SVID 3, POSIX, BSD 4.3, ISO 9899

SEE ALSO    [Toc]    [Back]

      
      
       index(3),  memchr(3),  rindex(3),  strpbrk(3),  strsep(3),   strspn(3),
       strstr(3), strtok(3)



				  1993-04-12			     STRCHR(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