<div dir="ltr">1. We didn't know about these functions.<br>2. There is no erts_asprintf, so we need to guess the length of output buffer<div>3. Files in this directory are *not* for public use and should *only* be used by Erlang/OTP applications. The content of this directory and the interfaces present in this directory may be changed at any time without prior notice.</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-09 23:38 GMT+04:00 Anthony Ramine <span dir="ltr"><<a href="mailto:n.oxyde@gmail.com" target="_blank">n.oxyde@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

What about hooking up into erts_*printf?<br>
<br>
--<br>
Anthony Ramine<br>
<br>
Le 9 mars 2014 à 20:25, Danil Zagoskin <<a href="mailto:z@gosk.in">z@gosk.in</a>> a écrit :<br>
<div><div class="h5"><br>
> Hello!<br>
><br>
> This is io_libc: <a href="https://github.com/maxlapshin/io_libc" target="_blank">https://github.com/maxlapshin/io_libc</a><br>
> It was created to speedup massive CSV generation but may be useful for other purposes.<br>
><br>
> io_libc provides an erlangish interface to standard C printf().<br>
><br>
> It has very poor protection from malformed input, falling back to zeroes and empty strings, but it is very fast.<br>
><br>
> Some examples:<br>
><br>
> 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">><br>
><br>
> --<br>
> Danil Zagoskin | <a href="mailto:z@gosk.in">z@gosk.in</a><br>
</div></div>> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="'courier new', monospace">---------------------------------------------</font><div><font face="'courier new', monospace">Данил Загоскин | +7 906 064 20 47 | <a href="mailto:z@gosk.in" target="_blank">z@gosk.in</a></font></div>


</div>