Annotation of researchv10no/ncurses/screen/delwin.c, revision 1.1

1.1     ! root        1: /*      delwin.c     1.2     10/22/87             */
        !             2: # include      "curses.ext"
        !             3: /*     @(#) delwin.c: 1.1 10/15/83     (1.2    4/7/82) */
        !             4: 
        !             5: /*
        !             6:  *     This routine deletes a _window and releases it back to the system.
        !             7:  *
        !             8:  * 1/26/81 (Berkeley) @(#)delwin.c     1.1
        !             9:  */
        !            10: delwin(win)
        !            11: reg WINDOW     *win; {
        !            12: 
        !            13:        reg int i;
        !            14: 
        !            15:        if (!(win->_flags & _SUBWIN))
        !            16:                for (i = 0; i < win->_maxy && win->_y[i]; i++)
        !            17:                        cfree((char *) win->_y[i]);
        !            18: /* FIX START */
        !            19:        cfree((char *)win->_firstch);
        !            20:        cfree((char *)win->_lastch);
        !            21: /* FIX END */
        !            22:        cfree((char *) win->_y);
        !            23:        cfree((char *) win);
        !            24: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.