Simple substring search implemented for C99.