#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;
|
|
}
|