snprintf

Published March 05, 2006
Advertisement
Not much to say except that I got tired of hacking around issues with Microsoft's old implementation of snprintf, used by MinGW, so yesterday I set out to write my own. I've been closely following the official C99 spec, and I think I've got everything done except the e/E, G/g, and A/a specifiers and wchar_t support. In case anyone could use it, I'm releasing my implementation under the zlib license. It should integrate easily; just include after . If you make changes or bug fixes, consider sending them to me so I can update the original.

There's also the portable snprintf implementation; it targets a wider scope, beyond C99. I had trouble using it myself, but that seems to happen a lot so your mileage may vary.

Oh and I also just got back from Cuba a week ago. Was a nice vacation, stayed at a small resort, went to Havana. Good break from the computer.
Previous Entry My monthly entry
Next Entry Untitled
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Advertisement