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 line
293 B

3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "fun.h"
  4. int main()
  5. {
  6. char cmdline[MAXLINE];
  7. while(1)
  8. {
  9. int bufsize = MAXLINE;
  10. printf("COMMAND->");
  11. fgets(cmdline, MAXLINE, stdin);
  12. eval(cmdline);
  13. history(cmdline);
  14. }
  15. return 0;
  16. }