Wiki Page Content

Differences between revisions 9 and 10
Revision 9 as of 2013-08-10 18:41:20
Size: 530
Comment: Changed NULL check in example.
Revision 10 as of 2013-11-04 18:56:45
Size: 531
Comment: Reverted previous edit. SDL_GetError() never returns NULL.
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
if (error) { if (*error) {

SDL_ClearError

Use this function to clear any previous error message.

Syntax

void SDL_ClearError(void)

Code Examples

const char *error = SDL_GetError();
if (*error) {
  printf("SDL_Error : %s\n", error);
  SDL_ClearError();
}

Remarks

You can add useful comments here


CategoryAPI, CategoryError

None: SDL_ClearError (last edited 2016-05-11 20:30:45 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit