🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Silly Question

Started by
13 comments, last by ZomeonE 24 years, 5 months ago

sprintf is in stdio.h

-------
Andrew

Edited by - acraig on 1/12/00 4:21:03 PM
Advertisement
I'm always using wsprintf.

int score = 5;char* OutputString;wsprintf (OutputString, "Score: %d", score); 


That's fine.

Bye

Edited by - Melo on 1/13/00 10:06:54 AM
Whats the differance between wsprintf and sprintf?
wide character support depending on compilation flags and also uses _cdecl calling convention instead of pascal calling convention.

~deadlinegrunt

wsprintf also has a 1024 byte limit on the string lengths.
I don''t think swprintf has that limitation though.
(Not a typo swprintf is another multibyte print string function.)

This topic is closed to new replies.

Advertisement