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

  man pages->Tru64 Unix man pages -> strstr (3)              
Title
Content
Arch
Section
 

strstr(3)

Contents


NAME    [Toc]    [Back]

       strstr - Find a substring

SYNOPSIS    [Toc]    [Back]

       #include <string.h>

       char *strstr(
               const char *s1,
               const char *s2 );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       strstr():  ISO C, XPG4, XPG4-UNIX

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Specifies  the character string being searched.  Specifies
       the substring to be located.

DESCRIPTION    [Toc]    [Back]

       The strstr() function locates the first occurrence in  the
       string  pointed  to by the s1 parameter of the sequence of
       bytes in the  string  pointed  to  by  the  s2  parameter,
       excluding the terminating null character.

RETURN VALUES    [Toc]    [Back]

       On  successful completion, the strstr() function returns a
       pointer to the located string or a  null  pointer  if  the
       string  is  not  found.  When the s2 parameter points to a
       string having  0  (zero)  length,  the  strstr()  function
       returns the string pointed to by parameter s1.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: string(3), wcsstr(3), wcswcs(3)

       Standards: standards(5)



                                                        strstr(3)
[ Back ]
 Similar pages
Name OS Title
wcsstr Tru64 Find a wide-character substring
memmem Linux locate a substring
strstr Linux locate a substring
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 NetBSD locate a substring in a string
strstr OpenBSD locate a substring in a string
index IRIX return location of FORTRAN substring
index IRIX return location of FORTRAN substring
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service