SDL_ClearError

Name

SDL_ClearError -- Clear the current SDL error

Synopsis

#include "SDL.h"

void SDL_ClearError(void);

Description

SDL_ClearError deletes all information about the last internal SDL error. Useful if the error has been handled by the program.

Example

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

SDL_ClearErrorCZ (last edited 2008-07-18 11:58:55 by JaroslavGajdosik)