---
name: "SDL_WM_SetCaption"
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_SetCaption"
---

# SDL\_WM\_SetCaption(3)

Sets the window tile and icon name.

## NAME

SDL\_WM\_SetCaption - Sets the window tile and icon name.

## SYNOPSIS

**#include "SDL.h"**

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

## DESCRIPTION

Sets the title-bar and icon name of the display window.

## SEE ALSO

**SDL\_WM\_GetCaption**, **SDL\_WM\_SetIcon**
