The C standard library is notoriously poor when it comes to I/O safety. Many functions have buffer overflows (gets
, scanf
), or can clobber memory if not given proper arguments (scanf
), and so on. Every once and awhile, I come across an enterprising hacker who has written his own library that lacks these flaws.
What are the best of these libraries you have seen? Have you used them in production code, and if so, which held up as more than hobby projects?