2.11BSD/man/cat3/strstr.0

Compare this file to the similar file:
Show the results in this format:




STRSTR(3)	    UNIX Programmer's Manual		STRSTR(3)



NAME
     strstr - locate a substring in a string

SYNOPSIS
     #include <string.h>

     char *
     strstr(big, little)
     _c_h_a_r *_b_i_g, *_l_i_t_t_l_e;

DESCRIPTION
     The strstr() function locates the first occurrence of the
     null-terminated string _l_i_t_t_l_e in the null-terminated string
     _b_i_g.  If _l_i_t_t_l_e is the empty string, strstr() returns _b_i_g;
     if _l_i_t_t_l_e occurs nowhere in _b_i_g, strstr() returns NULL; oth-
     erwise strstr() returns a pointer to the first character of
     the first occurrence of _l_i_t_t_l_e.

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

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






























Printed 11/26/99	January 15, 1996			1