X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fmenu_new.3x.html;h=bb788ff340939ec91f16f97d0419d25e0a6eb01e;hp=7fc2e609f95a4c17cdb0192629a034136ebe9a2f;hb=c6cfd97b8beaf0f6deafbf8aac7281cf6aa7f012;hpb=a8987e73ec254703634802b4f7ee30d3a485524d diff --git a/doc/html/man/menu_new.3x.html b/doc/html/man/menu_new.3x.html index 7fc2e609..bb788ff3 100644 --- a/doc/html/man/menu_new.3x.html +++ b/doc/html/man/menu_new.3x.html @@ -1,8 +1,7 @@ - +
+ +- -menu_new(3x) menu_new(3x) +menu_new(3x) menu_new(3x)-
+NAME
menu_new - create and destroy menus-SYNOPSIS
+SYNOPSIS
#include <menu.h> MENU *new_menu(ITEM **items); int free_menu(MENU *menu);-DESCRIPTION
+DESCRIPTION
The function new_menu creates a new menu connected to a specified item pointer array (which must be NULL-termi- nated). @@ -69,8 +70,15 @@-RETURN VALUE
- The function new_menu returns NULL on error. +RETURN VALUE
+ The 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: @@ -80,7 +88,7 @@ System error occurred (see errno). E_BAD_ARGUMENT - Routine detected an incorrect or out-of-range argu- + Routine detected an incorrect or out-of-range argu- ment. E_POSTED @@ -88,35 +96,42 @@-SEE ALSO
+SEE ALSO
curses(3x), menu(3x).-NOTES
+NOTES
The header file <menu.h> automatically includes the header file <curses.h>.-PORTABILITY
- These routines emulate the System V menu library. They +PORTABILITY
+ These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions.-AUTHORS
- Juergen Pfeifer. Manual pages and adaptation for new +AUTHORS
+ Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. - menu_new(3x) + menu_new(3x)-
- -Man(1) output converted with -man2html - +