I know if I want tab completion I can use
char *readline (const char *prompt);
and I'll get tab completion while it's running, but what if I already have a string that I want to be completed? Is there a specific function in the readline library that I can call directly and send the string as a parameter to have it run tab completion on it?
I've read through a lot of the source code of complete.c to find a main function I could send a string to with no luck.