SDL_ClearError
Name
SDL_ClearError -- Clear the current SDL error
Synopsis
#include "SDL_error.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.
Return Value
This is a void function and returns nothing.
Example
1 if (strlen(SDL_GetError()) != 0) {
2 printf("SDL_Error : %s\n", SDL_GetError());
3 SDL_ClearError();
4 }
