In C find position of substring in a string - Stack Overflow
For some reasons I was having trouble with strstr(), and I also wanted index. I made this function to find the position of substring inside a bigger string (if exists) otherwise return -1. int isSubstring(char * haystack, char * needle) { int i = 0; int d...