Deletes the specified window from memory. Format #include <curses.h> int delwin (WINDOW *win);
1 – Argument
win A pointer to the window.
2 – Description
If the window being deleted contains a subwindow, the subwindow is invalidated. Delete subwindows before deleting their parent. The delwin function refreshes all windows covered by the deleted window.
3 – Return Values
OK Indicates success. ERR Indicates an error.