relative_search.c: c must be int so EOF is not confused with a char
also cache string_len