(no message)
[unix-history] / usr / src / lib / libcurses / delwin.c
CommitLineData
d51d9cc8
KA
1# include "curses.ext"
2
3/*
4 * This routine deletes a window and releases it back to the system.
5 *
1fe7814b 6 * %G% (Berkeley) @(#)delwin.c 1.2
d51d9cc8
KA
7 */
8delwin(win)
9reg WINDOW *win; {
10
11 reg int i;
12
13 if (!(win->_flags & _SUBWIN))
14 for (i = 0; i < win->_maxy && win->_y[i]; i++)
15 cfree(win->_y[i]);
16 cfree(win->_y);
1fe7814b
KA
17 cfree(win->_firstch);
18 cfree(win->_lastch);
d51d9cc8
KA
19 cfree(win);
20}