DOKK / manpages / debian 10 / allegro5-doc / al_find_menu.3alleg5.en
al_find_menu(3alleg5) al_find_menu(3alleg5)

al_find_menu - Allegro 5 API

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

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.

5.1.0

al_find_menu_item(3alleg5)

Allegro reference manual