DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

panel_userptr(S-osr5)


panel_userptr: set_panel_userptr, panel_userptr -- associate application data with a panels panel

Syntax

cc ... -lpanel -lcurses

#include <panel.h>

int set_panel_userptr(PANEL *panel, char *ptr); char *panel_userptr(PANEL *panel);

Description

set_panel_userptr- set the user pointer of a panel

panel_userptr- return the user pointer of a panel

Each panel has a user pointer available for maintaining relevant information.

set_panel_userptr(S-osr5) sets the user pointer of panel to ptr.

panel_userptr(S-osr5) returns the user pointer of panel.

Return values

set_panel_userptr( ) returns OK if successful, ERR otherwise.

panel_userptr( ) returns NULL if there is no user pointer assigned to panel.

Warning

The header file panel.h automatically includes the header file curses.h.

Files


/usr/lib/libpanel.a
the library

See also

curses(S-osr5), panels(S-osr5)

Standards conformance

set_panel_userptr(S-osr5) and panel_userptr(S-osr5) are not part of any currently supported standard; they were developed by UNIX System Laboratories, Inc. and are maintained by The SCO Group.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005