Wiki Page Content

Differences between revisions 9 and 10
Revision 9 as of 2010-08-29 19:10:54
Size: 688
Editor: SheenaSmith
Comment: update content (w/ Sam); remove 'draft' note
Revision 10 as of 2010-08-29 19:14:15
Size: 783
Editor: Sam Lantinga
Comment: null
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
{{{#!highlight cpp
SDL_SetError("Something unexpected happened: Error Code %d", -37);


Use this function to set the SDL error string.


void SDL_SetError(const char* fmt, 

Function Parameters


a printf() style message format string


additional parameters matching % tokens in the fmt string, if any

Code Examples

SDL_SetError("Something unexpected happened!");

SDL_SetError("Something unexpected happened: Error Code %d", -37);


You can add useful comments here

CategoryAPI, CategoryError

None: SDL_SetError (last edited 2016-05-11 20:22:50 by PhilippWiesemann)

Please include your contact information if you'd like to receive a reply.