Changed all the sscanf calls to use the %n directive. By comparing the
[ctodo.git] / help.c
blobd5bbba4d46d2f5a116c494f3009910df5764fb35
1 #include <help.h>
2 #include <stdio.h>
4 int help(sqlite3 *db, MArray tokens) {
5 printf("Available commands:\n");
6 printf(" add adds a todo\n");
7 printf(" del deletes a single todo\n");
8 printf(" help prints this help\n");
9 printf(" list lists all the todos\n");
10 printf(" quit exits the program\n");
11 printf(" show shows a single todo\n");
12 printf(" mark marks a todo as done\n");
13 printf(" unmark marks a todo as not done\n");
14 printf("For additional information on a particular command, use '<command> help', e.g. 'list help'.\n");
16 return 0;