効率のことさえ考えなければ、こんな感じ?
char* mystrstr(char* a, char* b)
{
  while(*a){
    if(strcmp(a, b) == 0){
      return a;
    }
    ++a;
  }
  return NULL;
}