From: hackbard Date: Wed, 23 Apr 2003 14:30:10 +0000 (+0000) Subject: added no_wait for interaction check X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00fb126a46fcf6591e153d2c81da2dd522700c4b;p=physik%2Fmorpheus.git added no_wait for interaction check --- diff --git a/main.c b/main.c index 08c6a6c..b2ca816 100644 --- a/main.c +++ b/main.c @@ -55,6 +55,7 @@ int usage() puts("-R \t read random data from file (default not used)"); puts("-D \t dump cell info into (default not used)"); puts("-L \t load cell info and display it (default no)"); + puts("-n \t do not wait for user interaction (default no)"); return -23; } @@ -255,6 +256,7 @@ int main(int argc,char **argv) int quit=0; /* continue/quit status */ char save_file[MAX_CHARS_SAVE_FILE]; char load_file[MAX_CHARS_LOAD_FILE]; + unsigned char no_wait; printfd("debug: sizeof my u32 variable: %d\n",sizeof(u32)); printfd("debug: sizeof my cell struct: %d\n",sizeof(cell)); @@ -279,6 +281,7 @@ int main(int argc,char **argv) strcpy(random_file,""); strcpy(save_file,""); strcpy(load_file,""); + no_wait=0; /* parse command args */ for(i=1;i