SDL Wiki
(This function is part of SDL_net, a separate library from SDL.)


Get the latest error message from SDL_net.

Header File

Defined in <SDL_net.h>


const char * SDLNet_GetError(void);

Return Value

(const char *) Returns the last set error message in UTF-8 encoding.


The error message, depending on how SDL_net was built, may or may not be thread-local data. Sometimes things will set an error message when no failure was reported; the error string is only meaningful right after a public API reports a failure, and should be ignored otherwise.


This function is available since SDL_net 2.0.0.

CategoryAPI, CategoryAPIFunction

[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.