blob: 98ef323f6e1cba058263fd640f936885d5825831 [file] [log] [blame]
/* For copyright information, see olden_v1.0/COPYRIGHT */
/*****************************************************************
* args.c: Handles arguments to command line. *
* To be used with health.c. *
*****************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include "health.h"
void dealwithargs(int argc, char *argv[]) {
if (argc < 4) {
max_level = 3;
max_time = 15;
seed = 4;
} else {
max_level = atoi(argv[1]);
max_time = atol(argv[2]);
seed = atol(argv[3]);
}
printf("max_level=%d max_time=%d seed=%d \n", max_level, (int)max_time, (int)seed);
}