SDL_GetError (3) - Linux Manuals
SDL_GetError: Get SDL error string
NAME
SDL_GetError - Get SDL error stringSYNOPSIS
#include "SDL/SDL.h"
DESCRIPTION
SDL_GetError returns a NULL terminated string containing information about the last internal SDL error.
RETURN VALUE
SDL_GetError returns a string containing the last error.