Wiki Page Content

Differences between revisions 6 and 7
Revision 6 as of 2010-08-29 18:54:57
Size: 528
Editor: SheenaSmith
Comment: update content (w/ Sam); remove 'draft' note
Revision 7 as of 2010-08-29 18:57:05
Size: 535
Editor: Sam Lantinga
Comment: null
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
if (strlen(SDL_GetError()) != 0) {
  printf("SDL_Error : %s\n", SDL_GetError());
const char *error = SDL_GetError();
if
(*error) {
  printf("SDL_Error : %s\n", 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