---
name: "SDL_GetPlatform"
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_GetPlatform"
---

# SDL\_GetPlatform(3)

Get the name of the platform.

## NAME

SDL\_GetPlatform - Get the name of the platform.

## HEADER FILE

Defined in SDL3/SDL\_platform.h

## SYNOPSIS

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

**const char \* SDL\_GetPlatform(void);**

## DESCRIPTION

Here are the names returned for some (but not all) supported platforms:

• "Windows"

• "macOS"

• "Linux"

• "iOS"

• "Android"

## RETURN VALUE

Returns the name of the platform. If the correct platform name is not available, returns a string beginning with the text "Unknown".

## AVAILABILITY

This function is available since SDL 3.2.0.
