Linux Manuals · Linux Manuals session 3 SDL_GetError (3) Linux Manual Page ByLinux Manual Posted onApr 21, 2026 SDL_GetError – Get SDL error string Synopsis#include "SDL/SDL.h" char *SDL_GetError(void); DescriptionSDL_GetError returns a NULL terminated string containing information about the last internal SDL error. Return ValueSDL_GetError returns a string containing the last error.