Copyright © tutorialspoint.com
Synopsis:
Description:The strstr function locates the first occurrence of the string string1 in the string string2 and returns a pointer to the beginning of the first occurrence. Return ValueThe strstr function returns a pointer within string2 that points to a string identical to string1. If no such sub string exists in src a null pointer is returned. Example
It will proiduce following result:
|
Copyright © tutorialspoint.com