Function sdl2_sys::SDL_GetError[][src]

pub unsafe extern "C" fn SDL_GetError() -> *const c_char
Expand description

\brief Get the last error message that was set

SDL API functions may set error messages and then succeed, so you should only use the error value if a function fails.

This returns a pointer to a static buffer for convenience and should not be called by multiple threads simultaneously.

\return a pointer to the last error message that was set