<div dir="ltr">Hello!<div><br></div><div>This is io_libc: <a href="https://github.com/maxlapshin/io_libc">https://github.com/maxlapshin/io_libc</a></div><div>It was created to speedup massive CSV generation but may be useful for other purposes.</div>
<div><br></div><div>io_libc provides an erlangish interface to standard C printf().</div><div><br></div><div>It has very poor protection from malformed input, falling back to zeroes and empty strings, but it is very fast.</div>
<div><br></div><div>Some examples:</div><div><br></div><div>erl> io_libc:format("hello, %08.3f, %s %04X!", [3.14, dead, 48879]).<br><<"hello, 0003.140, dead BEEF!">><br><br>erl> io_libc:format("%*.*f; %0*d", [8, 3, 2.7, 6, 12]). <br>
<<" 2.700; 000012">></div><div><br></div><div>-- <br><div><font face="'courier new', monospace">Danil Zagoskin | <a href="mailto:z@gosk.in" target="_blank">z@gosk.in</a></font></div></div>
</div>