Get the last error message that was set for the current thread.
char * SDL_GetErrorMsg(char *errstr, int maxlen);
|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 the pointer passed in as the
This allows the caller to copy the error string into a provided buffer, but otherwise operates exactly the same as SDL_GetError().
This function is available since SDL 2.0.14.