posprintf is a partial implementation of sprintf that I wrote specifically for GBA game development. It is written in Thumb assembler and should be very fast.

Implemented specifiers:

Note: Lead digit padding works only for %d, %l, %x and %X, and only for digits 1 through 9. (Although if you know your ascii table you can continue to provide bigger numbers; this should not be necessary though as %l can only display up to 9 characters anyway.) Prefixing a 0 before the number prints leading zeros instead of spaces.

Everything is explained fully on the documentation page.

posprintf no longer has a license, and has been released to the public domain.

Download the zip file

Contact the author