#include /* substring locates a substring sub in a string s. If the substring is not found, it returns -1. If the substring is found, it returns the index in s where the substring is found. strncmp(s1,s2,n) compares the first n characters of two strings and returns 0 if they match. */ int substring( char *s, char *sub) { int i; for (i=0;i