2 ms·
This HN comment and its follow ups are an interesting read. There are some stdlib implementations that don't have this issue. https://news.ycombinator.com/ite
by tyingq 6y ago
This HN comment and its follow ups are an interesting read. There are some stdlib implementations that don't have this issue.
https://news.ycombinator.com/item?id=26298300 https://news.ycombinator.com/item?id=26298300
- froh 6y agoalso a trivial workaround is to wrap the buffer with a FILE via fmemopen(3), which makes the temporary FILE object explicit and persistent for the whole parse, and needs just one strlen call. https://news.ycombinator.com/item?id=26343149 https://news.ycombinator.com/item?id=26343149