---
name: "shutdown_menu"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/shutdown_menu"
---

# shutdown\_menu(3alleg)

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**(3alleg)](/init_menu/3alleg.md), [**update\_menu**(3alleg)](/update_menu/3alleg.md)
