1 /* mnemon - A memory training program
3 * Copyright © 2006,2011 Carl Worth
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA."
28 #include <sys/types.h>
37 #include <readline/readline.h>
38 #include <readline/history.h>
43 main (int argc, char *argv[])
48 void _load_categories()
52 for (i = 1; i < argc; i++)
53 mnemon_load_category (&mnemon, argv[i]);
55 mnemon_load (&mnemon);
61 mnemon_init (&mnemon);
65 mnemon_do_challenges (&mnemon);
67 mnemon_save (&mnemon);
69 mnemon_fini (&mnemon);
71 mnemon_init (&mnemon);
75 printf ("Great job.\nHere are your current results:\n");
76 mnemon_print_histogram (&mnemon, NULL, 0);
77 response = readline ("Press enter to quit.\n");
80 mnemon_fini (&mnemon);