diff options
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ Task Time Tracker - [ ] Compress code: - [x] Re-do sprint_time5_utf8: -12 delta LOC; - [x] Re-do truncate_string_utf8: 0 delta LOC; - - [ ] Implement `read_input_to_string_buffer`: -24 delta LOC; + - [x] Implement `read_input_to_string_buffer`: -24 delta LOC; - [ ] wrap malloc (and maybe others) in a function with error checking ```c static inline void *MallocOrDie(size_t MemSize) { void *AllocMem = malloc(MemSize); /* Some implementations return null on a 0 length alloc, * we may as well allow this as it increases compatibility * with very few side effects */ if(!AllocMem && MemSize) { printf("Could not allocate memory!"); exit(-1); } return AllocMem; } |
