It's not quite as easy as it sounds. You basically have to rewrite *printf
functionality, which is quite a pain. I had to do something similar for a
webserver I wrote a while back. I wanted the module api to be able to do
*printf writes back to the client, but I had buffer overruns to worry
about.
If there's a nice GNU alternative, take that code. If not, I can
contribute the simple function I have (only %u, %i, %x, and %s, I believe
-- no formatting either).
Justin
P.S. The DSL line should be installed in 4-6 days now, so I'll be able to
pick up Word import/export development again. I hope to have have support
for both in by 1.0.