Name

strstr —

Synopsis

string strstr(str1, str2);
string str1;
string str2;

Description

Looks for string str2 in string str1

Parameters

str1

The first string

str2

The second string

Returns

A string containing the part of str1 beginning with the found string until end if str2 is in str1 (else an empty string)