DOKK / manpages / debian 11 / allegro5-doc / al_clone_menu.3alleg5.en
al_clone_menu(3alleg5) al_clone_menu(3alleg5)

al_clone_menu - Allegro 5 API

#include <allegro5/allegro_native_dialog.h>
ALLEGRO_MENU *al_clone_menu(ALLEGRO_MENU *menu)
    

Makes a copy of a menu so that it can be reused on another display. The menu being cloned can be anything: a regular menu, a popup menu, or a sub-menu.

Returns the cloned menu.

5.1.0

al_clone_menu_for_popup(3alleg5)

Allegro reference manual