menu_new - Online Linux Manual Page

Section : 3X
Updated :

NAMEnew_menu, free_menu − create and destroy menus

SYNOPSIS#include <menu.h> MENU *new_menu(ITEM **items);
int free_menu(MENU *menu);

DESCRIPTIONThe function new_menu creates a new menu connected to a specified item pointer array (which must be NULL-terminated). The function free_menu disconnects menu from its item array and frees the storage allocated for the menu.

RETURN VALUEThe function new_menu returns NULL on error. It sets errno according to the function's failure: 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.

SEE ALSOcurses(3X), menu(3X).

NOTESThe header file <menu.h> automatically includes the header file <curses.h>.

PORTABILITYThese routines emulate the System V menu library. They were not supported on Version 7 or BSD versions.

AUTHORSJuergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.
0
Johanes Gumabo
Data Size   :   7,364 byte
man-new_menu.3xBuild   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   28 / 2,230,934
Visitor ID   :     :  
Visitor IP   :   216.73.216.247   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   20   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.