---
name: "SDL_WM_GetCaption"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_WM_GetCaption"
---

# SDL\_WM\_GetCaption(3)

Gets the window title and icon name.

## NAME

SDL\_WM\_GetCaption - Gets the window title and icon name.

## SYNOPSIS

**#include "SDL.h"**

**void SDL\_WM\_GetCaption**(**char \*\*title, char \*\*icon**);

## DESCRIPTION

Set pointers to the window **title** and **icon** name.

## SEE ALSO

**SDL\_WM\_SetCaption**, **SDL\_WM\_SetIcon**
