---
name: "shutdown_menu"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/shutdown_menu/3alleg4"
---

# shutdown\_menu(3alleg4)

Destroys a menu player object returned by init\_menu(). Allegro game programming library.

## NAME

shutdown\_menu - Destroys a menu player object returned by init\_menu(). Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int shutdown\_menu(MENU\_PLAYER \*player);**

## DESCRIPTION

Destroys a menu player object returned by init\_menu(), returning the index of the menu item that was selected, or -1 if the menu was cancelled (this is the same as the return value from do\_menu()).

## SEE ALSO

**init\_menu**(3alleg4), **update\_menu**(3alleg4)
