Did I just try to fix Prelude's code ?!?Code:const char *substr(const char *s, const char *match) { do { const char *p, *q; //if both strings match it'll end up comparing chars after the string's end for (p = s, q = match; *p == *q && *q!=0 ; p++, q++) ; if (*q == '\0') return s; } while (++*s != '\0');//i think we want to know if the next char is valid, not the actual return 0; }