Function sdl2_sys::SDL_GetErrorMsg[][src]

pub unsafe extern "C" fn SDL_GetErrorMsg(
    errstr: *mut c_char,
    maxlen: c_int
) -> *mut c_char
Expand description

\brief Get the last error message that was set for the current thread

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

\param errstr A buffer to fill with the last error message that was set for the current thread \param maxlen The size of the buffer pointed to by the errstr parameter

\return errstr