Tuesday, 30 January 2018

String Function strstr()

Declaration:

char *strstr(const char* string1, const char* string2)
 
Headerfile: string.h

Returns:
returns a pointer to the first occurrence of string2 in string1.
if not found, returns NULL.

Example:


No comments:

Post a Comment