summaryrefslogtreecommitdiffstats
path: root/todo.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2014-12-29 11:17:49 +0900
committerFreeArtMan <dos21h@gmail.com>2014-12-29 11:17:49 +0900
commit7a794483c75fa6590958dda5ceaf5fb4438c3066 (patch)
tree9fde594088b1a844f5e4ad2568158f049cdd7981 /todo.c
parent0aa0acedcbf8c19ad7049335c7abbb0f71e2cdee (diff)
downloadmicrobbs-7a794483c75fa6590958dda5ceaf5fb4438c3066.tar.gz
microbbs-7a794483c75fa6590958dda5ceaf5fb4438c3066.zip
Small fixes, not change any functionality
Diffstat (limited to 'todo.c')
-rw-r--r--todo.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/todo.c b/todo.c
index a505123..ce42633 100644
--- a/todo.c
+++ b/todo.c
@@ -16,6 +16,7 @@ int bbs_todo( term_screen *ts, const char *fname)
if ( fname == NULL )
fname = CONFIG_TODO_DEFAULT_FILE;
+ //LOAD DATA FROM FILE TO LINKED LIST
List *todo_list = llist_new();
f_file *file = f_file_open( fname, F_FILE_READ );
if ( file != NULL )
@@ -35,11 +36,14 @@ int bbs_todo( term_screen *ts, const char *fname)
}
f_file_close( file );
+ //LOAD DATA FROM FILE TO LINKED LIST
+ //END
+
while( (quit_loop == 0) )
{
- printf("(S)how tood list,(Q)uit:");
+ printf("(S)how todo list,(Q)uit:");
ret_len = getline( &in_buf, &in_size, stdin );
if ( ret_len > 0 )
{
@@ -59,7 +63,7 @@ int bbs_todo( term_screen *ts, const char *fname)
int cnt = 1;
while (iter != NULL)
{
- printf( "[%d] -> %s\n", cnt, (char *)iter->val);
+ printf( "[%02d] -> %s\n", cnt, (char *)iter->val);
cnt += 1;
iter = iter->next;
}