char * strstr ( const char * string1, const char * string2 );
Find substring.
Scans string1 for the first occurrence of string2.
The search does not include terminating null-characters.
......
Return Value.
A pointer to the first occurrence of string2 in string1.
If string2 is not found in string1 the function returns NULL.
poti folosi strstr (din libraria string.h / cstring ) si sa cauti recursiv, de genul:
long noa(char *where, char *who) {
char *p = strstr(where, who);
if ( p==NULL ) return 0;
else return 1+noa( where+strlen(who), who );
}