I was wondering if there is a function or an easy way of checking to see if a smaller string is inside a bigger string.
For example,
Is there a function that can replace "string1 is in string2", or an easy way of doing that using for loops?Code:char *string1 = "hello";
char *string2 = "asdjasd hello asdjasdj";
if(string1 is in string2) {
do stuff;
}