Clear any previous error message for this thread.
Defined in <SDL3/SDL_error.h>
int SDL_ClearError(void);
Returns 0
This function is available since SDL 3.0.0.
const char *error = SDL_GetError(); if (*error) { SDL_Log("SDL error: %s", error); SDL_ClearError(); }
CategoryAPI, CategoryAPIFunction, CategoryError