strstr (9) - Linux Manuals
strstr: Find the first substring in a NUL terminated string
Command to display strstr
manual in Linux: $ man 9 strstr
NAME
strstr - Find the first substring in a NUL terminated string
SYNOPSIS
-
char * strstr(const char * s1, const char * s2);
ARGUMENTS
s1
-
- The string to be searched
s2
-
The string to search for
COPYRIGHT
Pages related to strstr
- strstr (3) - locate a substring
- strstr (3p) - find a substring
- strscpy (9) - Copy a C-string into a sized buffer
- strsep (9) - Split a string into tokens
- strspn (9) - Calculate the length of the initial substring of s which only contain letters in accept
- strcat (9) - Append one NUL-terminated string to another
- strchr (9) - Find the first occurrence of a character in a string
- strchrnul (9) - Find and return a character in a string, or end of string