Mike,
Send me your email and I'll ship you the ZIP of my source. It's a bunch of CRT support routines, but the routine that you want is csprintf() and the associated support routines, all in crtio.c. You can probably toss the rest without harm.
--Chuck