C
Chris M. Thomasson
[...]
That's basically what I did here except I used `vfprintf()':
http://clc.pastebin.com/f31279cba
A nice hack IMHO to implement snprintf() on systems where it is not
available,
is tho fprintf() to a file, and read back the answer. This will only need
one pass, and the arguments are only evaluated once.
On a unix-like systems, the file can even be unlinked after creation.
Since all of the printing takes place in OS-buffers, this will be almost
optimal.
That's basically what I did here except I used `vfprintf()':
http://clc.pastebin.com/f31279cba