items


HOME

items

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
NOTES
PORTABILITY
AUTHORS

NAME

menu_items − make and break connections between items and menus

SYNOPSIS

#include <menu.h>
int set_menu_items(MENU *menu, ITEM **items);
ITEM **menu_items(const MENU *menu);
int item_count(const MENU *menu);

DESCRIPTION

The function set_menu_items changes the item pointer array of the given menu. The array must be terminated by a NULL.

The function menu_items returns the item array of the given menu.

The function item_count returns the count of items in menu.

RETURN VALUE

The function menu_items returns a pointer (which may be NULL). It does not set errno.

The function item_count returns ERR (the general curses error return value) if its menu parameter is NULL.

The function set_menu_items returns one of the following codes on error:

E_OK

The routine succeeded.

E_BAD_ARGUMENT

Routine detected an incorrect or out-of-range argument.

E_NOT_CONNECTED

No items are connected to the menu.

E_POSTED

The menu is already posted.

E_SYSTEM_ERROR

System error occurred (see errno).

SEE ALSO

ncurses(3NCURSES), menu(3MENU).

NOTES

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

PORTABILITY

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

The SVr4 menu library documentation specifies the item_count error value as −1 (which is the value of ERR).

AUTHORS

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.




More Linux Commands

manpages/snapper-zypp-plugin.8.html
snapper-zypp-plugin(8) Snapper plugin for libzypp (ManPage)
With the snapper-zypp-plugin, snapper can create snapshots whenever libzypp, and thus e.g. zypper and YaST, installs, updates or removes packages. FILES /etc/sn

manpages/XFree.3.html
XFree(3) - free client data (Library - Linux man page)......
The XFree function is a general-purpose Xlib routine that frees the specified data. You must use it to free any objects that were allocated by Xlib, unless an a

manpages/pnminterp.1.html
pnminterp(1) - replaced by pamstretch - Linux manual page...
This program is part of Netpbm(1) pnminterp was replaced in Netpbm 9.21 (December 2001) by pamstretch(1) pamstretch is backward compatible with pnminterp, but a

manpages/gtty.2.html
gtty(2) - unimplemented system calls - Linux manual page....
These system calls are not implemented in the Linux kernel. RETURN VALUE These system calls always return -1 and set errno to ENOSYS. NOTES Note that ftime(3),

manpages/format.3menu.html
format(3menu) - set and get menu sizes - Linux manual page
format.3menu - The function set_menu_format sets the maximum display size of the given menu. If this size is too small to display all menu items, the menu will

manpages/XML::DOM::DOMImplementation.3pm.html
XML::DOM::DOMImplementation(3pm) - Information about XML::DO
The DOMImplementation interface provides a number of methods for performing operations that are independent of any particular instance of the document object mo

manpages/perl585delta.1.html
perl585delta(1) - what is new for perl v5.8.5 (Man Page)....
This document describes differences between the 5.8.4 release and the 5.8.5 release. Incompatible Changes There are no changes incompatible with 5.8.4. Core Enh

manpages/gnutls_certificate_set_verify_function.3.html
gnutls_certificate_set_verify_function(3) - API function....
This function sets a callback to be called when peers certificate has been received in order to verify it on receipt rather than doing after the handshake is co

manpages/pkill.1.html
pkill(1) - look up or signal processes based on name and oth
pgrep looks through the currently running processes and lists the process IDs which match the selection criteria to stdout. All the criteria have to match. For

manpages/Net::protoent.3pm.html
Net::protoent(3pm) - by-name interface to Perl's built-in ge
This modules default exports override the core getprotoent(), getprotobyname(), and getnetbyport() functions, replacing them with versions that return Net::prot

manpages/soapsuds.1.html
soapsuds(1) - Mono's Remoting Proxy Generator (Man Page)....
soapsuds is a tool for generating WSDL documents and client proxies for remoting services. A WSDL document describes the methods that a service provides togethe

manpages/XGetIconSizes.3.html
XGetIconSizes(3) - allocate icon size structure and set or r
The XAllocIconSize function allocates and returns a pointer to a XIconSize structure. Note that all fields in the XIconSize structure are initially set to zero.





We can't live, work or learn in freedom unless the software we use is free.