John Rabung

  Department of Computer Science

  Randolph-Macon College

  Office: Copley 223, Phone: 804-752-7328,
   email:   jrabung@rmc.edu

Fall 2011 Courses

January 2012 Course


#define DFL_PROMPT "> "

int main()
{
   char *cmdline, *prompt, **arglist;
   int result;
   void setup();
   prompt = DFL_PROMPT ;
   setup();

   while ( (cmdline = next_cmd(prompt, stdin)) != NULL ){
      if ( (arglist = splitline(cmdline)) != NULL ){
         result = execute(arglist);
         freelist(arglist);
      }
      free(cmdline);
   }
   return 0;
}

Spring 2012 Courses