history_search_prefix
ret = history_search_prefix(pat, -1);
int history_search_prefix(const char *, int);