SDL_Linked_Version function
SDL_Linked_Version -- Gets the version of the dynamically linked SDL library
Syntax
const SDL_version* SDL_Linked_Version();
Description
The SDL_Linked_Version function gets the version of the current dynamically linked SDL library and returns a pointer to a SDL_version structure containing the version information.
Parameter
nothing
Return value
Returns a constant pointer to an SDL_version structure containing the version information.
Example
1 const SDL_version* v = SDL_Linked_Version();
2 printf("Version: %u.%u.%u", v->major, v->minor, v->patch);
See also
Requirements
Header |
SDL.h |
Version |
1.2.13 |
Shared object |
libSDL.so |
DLL |
SDL.dll |
