STRSTR
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
strstr
- locate a substring in a string
SYNOPSIS
Fd #include <string.h>
Ft char *
Fn strstr const char *big const char *little
DESCRIPTION
The
Fn strstr
function
locates the first occurrence of the null-terminated string
Fa little
in the null-terminated string
Fa big .
If
Fa little
is the empty string,
Fn strstr
returns
Fa big ;
if
Fa little
occurs nowhere in
Fa big ,
Fn strstr
returns NULL;
otherwise
Fn strstr
returns a pointer to the first character of the first occurrence of
Fa little .
SEE ALSO
index(3),
memchr(3),
rindex(3),
strchr(3),
strcspn(3),
strpbrk(3),
strrchr(3),
strsep(3),
strspn(3),
strtok(3)
STANDARDS
The
Fn strstr
function
conforms to
St -ansiC .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- STANDARDS
-
This document was created by
man2html,
using the manual pages.
Time: 15:52:54 GMT, January 15, 2023