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

SDLNet_SetError

Set an error message to be retrieved with SDLNet_GetError.

Syntax

void SDLNet_SetError(const char *fmt, ...);

Function Parameters

fmt

a printf-style format string for the error message.

Remarks

Generally you don't need to call this (SDL_net will use it internally to report errors), but it could be useful if you need to inject an error message of your own in here.

Version

This function is available since SDL_net 2.0.0.


CategoryAPI


[ 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.