logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetHint - Get the value of a hint.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

name   the hint to query.

Header File

       Defined in SDL3/SDL_hints.h

Name

       SDL_GetHint - Get the value of a hint.

Return Value

       Returns the string value of a hint or NULL if the hint isn't set.

See Also

(3), SDL_SetHint(3), (3), SDL_SetHintWithPriority(3)

Simple Directmedia Layer                           SDL 3.2.10                                     SDL_GetHint(3)

Synopsis

#include"SDL3/SDL.h"constchar*SDL_GetHint(constchar*name);

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.

See Also