🔒 Locked
wsprintf equivalent
Advertisement
Original Post
I'm programming a game that uses SDL and I don't want to limit it to the windows platform by using any of the windows only functions. Teh book I'm using uses the function wsprintf, which is defined in windows.h. My question is: Is there a c or C++ function like wsprintf? I know about sprintf, but it doesn't append to the string does it? I wasn't sure about that.
#include
main()
{
char str[256];
sprintf(str,"I have owned joo!");
}
main()
{
char str[256];
sprintf(str,"I have owned joo!");
}
Could use std::wfstream (should be in fstream)
Quote:
Original post by Shmuel
Where is swprintf defined?
The same header as sprintf, and listed in the Requirements section in this article, which I linked to above.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement