| Main index | Section 3 | Options |
#include <menu.h>MENU *new_menu(ITEM **items); int free_menu(MENU *menu);
The function free_menu disconnects menu from its item array and frees the storage allocated for the menu.
| E_NOT_CONNECTED | |
| No items are connected to the menu. | |
| E_SYSTEM_ERROR | |
| System error occurred, e.g., malloc failure. | |
| The function free_menu returns one of the following: | |
| E_OK | The routine succeeded. |
| E_SYSTEM_ERROR | |
| System error occurred (see errno(3)). | |
| E_BAD_ARGUMENT | |
| Routine detected an incorrect or out-of-range argument. | |
| E_POSTED | |
| The menu has already been posted. | |
| 2024-03-16 | menu_new (3X) | ncurses 6.5 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Unix is the answer, but only if you phrase the question very carefully. | ” |
| — Belinda Asbell | ||