You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

19 lines
293 B

#include <stdio.h>
#include <stdlib.h>
#include "fun.h"
int main()
{
char cmdline[MAXLINE];
while(1)
{
int bufsize = MAXLINE;
printf("COMMAND->");
fgets(cmdline, MAXLINE, stdin);
eval(cmdline);
history(cmdline);
}
return 0;
}