---
name: "al_find_menu"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_find_menu"
---

# al\_find\_menu(3)

Allegro 5 API

## NAME

al\_find\_menu - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_native_dialog.h>
  ALLEGRO_MENU *al_find_menu(ALLEGRO_MENU *haystack, uint16_t id)
  ```

## DESCRIPTION

Searches in the `haystack` menu for any submenu with the given `id`. (Note that this only represents a literal ID, and cannot be used as an index.)

Returns the menu, if found. Otherwise returns `NULL`.

## SINCE

5\.1.0

## SEE ALSO

[al\_find\_menu\_item(3)](/al_find_menu_item/3.md)
