doches/progressbar
View on GitHub ↗ ★ 475 C
An easy-to-use C library for displaying text progress bars.
3 mentions on Hacker News by 2 people: 1 story, 2 comments · first 2015-08-29 · latest 2015-08-29
20082026
-
https://github.com/doches/progressbar/blob/master/lib/progre... The correct solution would be a) check the length of format, and if it less than or equal to 4 but greater than 0, then copy the bytes, else, don't... I guess? Why is 4 such…
comment by _RPM · 2015-08-29 · in Show HN: Progressbar - A C library for displaying command-line progress bars -
Consider checking the return value of malloc (e.g: https://github.com/doches/progressbar/blob/master/lib/progre... ) You're setting users/yourself up for a disaster if you're assuming it will never fail. The standard [0] states that the…
comment by _RPM · 2015-08-29 · in Show HN: Progressbar - A C library for displaying command-line progress bars