menu_userptr


HOME

menu_userptr

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
NOTES
PORTABILITY
AUTHORS

NAME

mitem_userptr − associate application data with a menu item

SYNOPSIS

#include <menu.h>
int set_item_userptr(ITEM *item, void *userptr);
void *item_userptr(const ITEM *item);

DESCRIPTION

Every menu item has a field that can be used to hold application-specific data (that is, the menu-driver code leaves it alone). These functions get and set that field.

RETURN VALUE

The function item_userptr returns a pointer (possibly NULL). It does not set errno.

The set_item_userptr always returns E_OK (success).

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 user pointer is a void pointer. We chose not to leave it as a char pointer for SVr4 compatibility.

AUTHORS

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




More Linux Commands

manpages/cerfcf.3.html
cerfcf(3) - complex error function - Linux manual page......
The (unimplemented) function cerf() is the complex version of the error function. erf(z) = 2/sqrt(pi) * integral from 0 to z of exp(-t*t) dt. The function cerfc

manpages/printw.3ncurses.html
printw(3ncurses) - print formatted output in curses windows
printw.3ncurses - The printw, wprintw, mvprintw and mvwprintw routines are analogous to printf [see printf(3)]. In effect, the string that would be output by pr

manpages/intel_upload_blit_small.1.html
intel_upload_blit_small(1) - microbenchmark of Intel GPU per
intel_upload_blit_small is a microbenchmark tool for DRM performance. It should be run with kernel modesetting enabled, and may require root privilege for corre

manpages/squid_session.8.html
squid_session(8) - Squid session tracking external acl group
This helper maintains a concept of sessions by monitoring requests and timing out sessions if no requests have been seen for the idle timeout timer. Intended us

manpages/filetest.3pm.html
filetest(3pm) - Perl pragma to control the filetest permissi
This pragma tells the compiler to change the behaviour of the filetest permission operators, -r -w -x -R -W -X (see perlfunc). The default behaviour of file tes

manpages/erfcl.3.html
erfcl(3) - complementary error function - Linux manual page
The erfc() function returns the complementary error function of x, that is, 1.0 - erf(x). RETURN VALUE On success, these functions return the complementary erro

manpages/attroff.3ncurses.html
attroff(3ncurses) - curses character and window attribute co
These routines manipulate the current attributes of the named window. The current attributes of a window apply to all characters that are written into the windo

manpages/menu_opts_off.3menu.html
menu_opts_off(3menu) - set and get menu options (Man Page)
The function set_menu_opts sets all the given menus option bits (menu option bits may be logically-ORed together). The function menu_opts_on turns on the given

manpages/cur_term.3ncurses.html
cur_term(3ncurses) - curses terminfo global variables.......
This page summarizes variables provided by the curses librarys low-level terminfo interface. A more complete description is given in the curs_terminfo(3X) manua

manpages/gnutls_certificate_client_set_retrieve_function.3.html
gnutls_certificate_client_set_retrieve_function.3...........
gnutls_certificate_client_set_retrieve_function.3 - This function sets a callback to be called in order to retrieve the certificate to be used in the handshake.

manpages/Tcl_DictObjPut.3.html
Tcl_DictObjPut(3) - manipulate Tcl objects as dictionaries
Tcl dictionary objects have an internal representation that supports efficient mapping from keys to values and which guarantees that the particular ordering of

manpages/Tcl_ChannelGetOptionProc.3.html
Tcl_ChannelGetOptionProc(3) - procedures for creating and ma
Tcl uses a two-layered channel architecture. It provides a generic upper layer to enable C and Tcl programs to perform input and output using the same APIs for





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