---
name: "SDL_GetHint"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetHint"
---

# SDL\_GetHint(3)

Get the value of a hint.

## NAME

SDL\_GetHint - Get the value of a hint.

## HEADER FILE

Defined in SDL3/SDL\_hints.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**const char \* SDL\_GetHint(const char \*name);**

## FUNCTION 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.

## SEE ALSO

**•**(3), [**SDL\_SetHint**(3)](/SDL_SetHint/3.md), **•**(3), [**SDL\_SetHintWithPriority**(3)](/SDL_SetHintWithPriority/3.md)
