delwin - delete a window
#include <curses.h> int delwin(WINDOW *win);
The delwin() function deletes win, freeing all memory associated with it. The application must delete subwindows before deleting the main window.
Upon successful completion, delwin() returns OK. Otherwise, it returns ERR.
No errors are defined.
derwin(), dupwin(), <curses.h>.