diff options
Diffstat (limited to 'todo.c')
-rw-r--r-- | todo.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; } |