SDL_ClearError

Author: liumin liumin3000@gmail.com


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();
}


CategorySDLGeneral

SDL_ClearError (last edited 2010-03-02 13:44:29 by 121)