diff options
| author | dam <dam@gudinoff> | 2022-08-03 10:16:21 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-08-03 10:16:21 +0000 |
| commit | cf98714e8dc888d51945c8e1638b983c678abd44 (patch) | |
| tree | 819c86d76e523835271efff3279acf3c0319fca7 /task_tracker.c | |
| parent | 430c1db29e2f7cafa20815296b811d7fc2964854 (diff) | |
| download | task-time-tracker-cf98714e8dc888d51945c8e1638b983c678abd44.tar.zst task-time-tracker-cf98714e8dc888d51945c8e1638b983c678abd44.zip | |
Preparing structures to store tasks and events data.
Diffstat (limited to 'task_tracker.c')
| -rw-r--r-- | task_tracker.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/task_tracker.c b/task_tracker.c index 9bb8f4b..c0f40ab 100644 --- a/task_tracker.c +++ b/task_tracker.c @@ -8,8 +8,6 @@ #include <time.h> -int selected_task = -1; - struct task_event { char* name; time_t start; @@ -22,6 +20,7 @@ struct task_info { }; +int selected_task = -1; char** tasks_names = NULL; uint32_t tasks_names_size = 0; uint32_t tasks_names_capacity = 0; @@ -109,7 +108,7 @@ void fake_data() // Free tasks names. for (uint32_t idx = tasks_names_size; idx > 0; idx--) { - printf("> %s\n", tasks_names[idx-1]); + printf("> %s\n", tasks_names[idx-1]); // @dam TODO debug free(tasks_names[idx-1]); } free(tasks_names); |
