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 }

See Also

SDL_GetError, SDL_SetError


CategorySDL13API CategorySDL13APIGeneral

SDL-1.3/SDL_ClearError (last edited 2009-07-27 02:38:14 by KenBull)