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

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

unix.superglobalmegacorp.com

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