From ceec90a42dc3b538b68191d041e1112bc523adb0 Mon Sep 17 00:00:00 2001 From: dam Date: Wed, 24 Aug 2022 00:35:06 +0000 Subject: Checks if CHAR_BIT is 8. Using char as unit of string. Completed truncate_string_utf8 function. Fixed all warnings. Fix bug on replace_char function. --- readme.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 210b5e7..8489b9f 100644 --- a/readme.md +++ b/readme.md @@ -4,14 +4,13 @@ Task Time Tracker # notes - Only one task may be active; - The log will be a circular array. During app startup the array will be loaded from a csv file. The log array should have a fixed length. Each string in the array should also have fixed length. Loading and storing it to a file will be implemented using readline and writeline operations. In order for the log file to be CSV compatible, we must always use the same format when writing to the log array. Best approach is to use a function that enfores the CSV format. The log should be written to a file every 5 minutes (not set in stone), if required; such may be done using a `log_is_dirty` flag. A possible structure for the log entries is: {uint64_t timestamp; uint8_t action[16]; uint8_t task_name[MAX_TASK_NAME+1]; uint8_t notes[16]; }. -- Truncate UTF8 string: - - If null-termination is found at or before the max_size; + # to-do list -- [ ] Include check on number of char bits; -- [ ] Decide once for all if I'll be using uint8_t or char for strings. +- [x] Include check on number of char bits; +- [x] Decide once for all if I'll be using uint8_t or char for strings: use char. - [x] maybe rename to task-time-tracker? -- [ ] Remove hash stuff; +- [x] Remove hash stuff; - [ ] Tasks should have a `modified_on` timestamp field; - [ ] Status of task will allow to keep counting time even when the process gets terminated forcefully; - [ ] Make sure task names don't include commas ','; -- cgit v1.2.3