Function SDL_GetHint
pub unsafe extern "C" fn SDL_GetHint(name: *const i8) -> *const i8
Available on crate feature
dep_sdl3
only.Expand description
Get the value of a hint.
§Parameters
name
: the hint to query.
§Return value
Returns the string value of a hint or NULL if the hint isn’t set.
§Thread safety
It is safe to call this function from any thread, however the return value only remains valid until the hint is changed; if another thread might do so, the app should supply locks and/or make a copy of the string. Note that using a hint callback instead is always thread-safe, as SDL holds a lock on the thread subsystem during the callback.
§Availability
This function is available since SDL 3.2.0.