StrStr
Syntax
long strstr(char s1[], char s2[]);
long strstr_off(char s1[], long offset, char s2[]);
Function
Searches ins1fors2.
Parameters
s1 First string
offset
Offset in s1 in bytes at which the search shall be started
s2
Second string
Return Values
First position in bytes ofs2ins1, or -1 ifs2is not found ins1.
long pos;char s1[18] = "Vector Informatik";char s2[11] = "Informatik";pos = strstr(s1, s2); // pos = 7
strlen | strncat | strncpy | String Literal