---
name: "SDL_WasInit"
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_WasInit"
---

# SDL\_WasInit(3)

Get a mask of the specified subsystems which are currently initialized.

## NAME

SDL\_WasInit - Get a mask of the specified subsystems which are currently initialized.

## HEADER FILE

Defined in SDL3/SDL\_init.h

## SYNOPSIS

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

**SDL\_InitFlags SDL\_WasInit(SDL\_InitFlags flags);**

## FUNCTION PARAMETERS

- *flags*

  any of the flags used by  **SDL\_Init** (); see  **SDL\_Init**\
    for details.

## RETURN VALUE

( **SDL\_InitFlags** ) Returns a mask of all initialized subsystems if **flags** is 0, otherwise it returns the initialization status of the specified subsystems.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_Init**(3)](/SDL_Init/3.md), **•**(3), [**SDL\_InitSubSystem**(3)](/SDL_InitSubSystem/3.md)
