Wiki Page Content

Revision 5 as of 2010-08-27 22:10:09

Clear message

DRAFT

SDL_ClearError

Use this function to clear any previous error message.

Syntax

void SDL_ClearError(void)

Code Examples

if (strlen(SDL_GetError()) != 0) {
  printf("SDL_Error : %s\n", SDL_GetError());
  SDL_ClearError();
}

Remarks

*
SDL_ClearError() deletes all information about the last internal SDL error. This is particularly useful if the error has been handled by the program.
*


CategoryAPI, CategoryError

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