4 \fBmitem_new\fR - create and destroy menu items
6 \fB#include <menu.h>\fR
8 ITEM *new_item(const char *name, const char *description);
10 int free_item(ITEM *item);
13 The function \fBnew_item\fR allocates a new item and initializes it from the
14 \fBname\fR and \fBdescription\fR pointers.
16 The function \fBfree_item\fR de-allocates an item.
18 The function \fBnew_item\fR returns \fBNULL\fR on error.
20 The function \fBfree_item\fR returns one of the following:
23 The routine succeeded.
26 System error occurred (see \fBerrno\fR).
29 Routine detected an incorrect or out-of-range argument.
32 Item is connected to a menu.
34 \fBcurses\fR(3X), \fBmenu\fR(3X).
36 The header file \fB<menu.h>\fR automatically includes the header file
39 These routines emulate the System V menu library. They were not supported on
40 Version 7 or BSD versions.
42 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
45 .\"# The following sets edit modes for GNU EMACS