Function fermium::error::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.

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

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

Returns: errstr