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

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

STRSTR(3)

Contents


NAME    [Toc]    [Back]

     strstr - locate a substring in a string

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <string.h>

     char *
     strstr(const char *big, const char *little);

DESCRIPTION    [Toc]    [Back]

     The strstr() function locates the first occurrence of the null-terminated
     string little in the null-terminated string big.  If little is the empty
     string, strstr() returns big; if little occurs nowhere in big, strstr()
     returns NULL; otherwise strstr() returns a pointer to the first character
     of the first occurrence of little.

SEE ALSO    [Toc]    [Back]

      
      
     index(3), memchr(3), rindex(3), strchr(3), strcspn(3), strpbrk(3),
     strrchr(3), strsep(3), strspn(3), strtok(3)

STANDARDS    [Toc]    [Back]

     The strstr() function conforms to ANSI X3.159-1989 (``ANSI C'').

BSD                              June 4, 1993                              BSD
[ Back ]
 Similar pages
Name OS Title
wcsstr Linux locate a substring in a wide-character string
strstr Linux locate a substring
memmem Linux locate a substring
wcswcs Tru64 Searche for a substring in a wide-character string.
strrchr FreeBSD locate character in string
strchr Linux locate character in string
strchr NetBSD locate character in string
index Linux locate character in string
rindex FreeBSD locate character in string
strchr FreeBSD locate character in string
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service