---
name: "SDL_GetHintBoolean"
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_GetHintBoolean"
---

# SDL\_GetHintBoolean(3)

Get the boolean value of a hint variable.

## NAME

SDL\_GetHintBoolean - Get the boolean value of a hint variable.

## HEADER FILE

Defined in SDL3/SDL\_hints.h

## SYNOPSIS

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

**bool SDL\_GetHintBoolean(const char \*name, bool default\_value);**

## FUNCTION PARAMETERS

- *name*

  the name of the hint to get the boolean value from.

- *default\_value*

  the value to return if the hint does not exist.

## RETURN VALUE

Returns the boolean value of a hint or the provided default value if the hint does not exist.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GetHint**(3)](/SDL_GetHint/3.md), **•**(3), [**SDL\_SetHint**(3)](/SDL_SetHint/3.md)
