--- libaitio/src/Attic/cli.c 2010/03/09 13:47:02 1.1.2.2 +++ libaitio/src/Attic/cli.c 2010/03/11 00:17:52 1.1.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.1.2.2 2010/03/09 13:47:02 misho Exp $ +* $Id: cli.c,v 1.1.2.3 2010/03/11 00:17:52 misho Exp $ * *************************************************************************/ #include "global.h" @@ -70,6 +70,19 @@ int io_Cmd_Unsupported(void *cmds, FILE *out, char ** { fprintf(out, "Command %s not supported in this version ...\n", args[0]); return 0; +} + +// ------------------------------------------------------------ + +/* + * io_Comp_Filename() Builtin helper function for filename completion arguments + * @text = Text line + * @state = Position state + * return: NULL not found filename, != NULL filename +*/ +char *io_Comp_Filename(const char *text, int state) +{ + return rl_filename_completion_function(text, state); } // ------------------------------------------------------------