strstr()

#include <string.h>

char* strstr( char* string1, char* string2 );

This function returns the address of the the first occurrence in string1 of string2, or NULL if string2 is not a subset of string1.


Back to Essential C Functions.