BSD 4 development
[unix-history] / usr / src / lib / libcurses / delwin.c
CommitLineData
15eea6e6
BJ
1# include "curses.ext"
2
3/*
4 * This routine deletes a window and releases it back to the system.
5 */
6delwin(win)
7reg WINDOW *win; {
8
9 reg int i;
10
11 if (!(win->_flags & _SUBWIN))
12 for (i = 0; i < win->_maxy && win->_y[i]; i++)
13 cfree(win->_y[i]);
14 cfree(win->_y);
15 cfree(win);
16}