SDL_GetVersion(3)

SDL_GetVersion3

Get the version of sdl that is linked against your program.

Usage

#include "SDL3/SDL.h"

int SDL_GetVersion(void);

Header file

Defined in SDL3/SDL_version.h

Overview

If you are linking to SDL dynamically, then it is possible that the current version will be different than the version you compiled against. This function returns the current version, while SDL_VERSION
is the version you compiled with.

This function may be called safely at any time, even before

SDL_Init ().

Return value

Returns the version of the linked library.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.