sl_command

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3011 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-08-15 21:39:59 +00:00
parent 0f714c8fdf
commit 353e922dbc

View File

@@ -130,6 +130,16 @@ add_history(char *p)
#endif
int
sl_command(SL_cmd *cmds, int argc, char **argv)
{
SL_cmd *c;
c = sl_match (cmds, argv[0], 0);
if (c == NULL)
return -1;
return (*c->func)(argc, argv);
}
int
sl_loop (SL_cmd *cmds, char *prompt)
{