Commit 3cda9603 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(main): Added 'q' (quit) command.

parent befaf5ef
......@@ -26,6 +26,7 @@ const int ARGS = 3;
w m write
i m iterate through all texts
i m f e iterate through f..e-1
q quit
*/
int
main(void)
......@@ -203,6 +204,10 @@ main(void)
ok = 1;
}
break;
case 'q':
printf("test-l2g quitting\n");
fflush(stdout);
return 0;
}
if (ok == 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment