#include "mode.h" /* Creates a new mode to run the simulation in. Handles any errors * with a useful message to stderr, and terminated the program. * args: command line arguments to parse into the mode * returns: a mode that signifies such things as: * RR, quantum, verbose, detailed */ Mode newMode(char** argv, int argc) { Mode new; new.detailed = false; new.verbose = false; new.roundRobin = false; new.quantum = 0; for(int i=1; i