Function sdl2_sys::SDL_GetErrorMsg
source ยท pub unsafe extern "C" fn SDL_GetErrorMsg(
errstr: *mut c_char,
maxlen: c_int,
) -> *mut c_char
Expand description
Get the last error message that was set for the current thread.
This allows the caller to copy the error string into a provided buffer, but otherwise operates exactly the same as SDL_GetError().
\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
\returns the pointer passed in as the errstr
parameter.
\since This function is available since SDL 2.0.14.
\sa SDL_GetError