Deletes a window.
Curses Library (libcurses.a)
#include <curses.h>
int delwin(WINDOW *win);
The delwin subroutine deletes win, freeing all memory associated with it. The application must delete subwindows before deleting the main window.
Item | Description |
---|---|
*win | Specifies the window to delete. |
Upon successful completion, the delwin subroutine returns OK. Otherwise, it returns ERR.
To delete the user-defined window my_window and its subwindow my_sub_window, enter:
WINDOW *my_sub_window, *my_window;
delwin(my_sub_window);
delwin(my_window);