home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │jzclswnd.c │
- │Restore the previous window contents, thereby closing the window, and │
- │free up the memory, that the window was taking up. │
- │Returns Null if the specified window number was not found │
- │ │
- │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
- └────────────────────────────────────────────────────────────────────────────┘
- */
-
- #include <jaz.h>
- #include <jzscreen.h>
- jzclswnd(fnum)
- int fnum;
- {
- TWINDOW *wptr;
-
- if ( !(wptr = wsearch(fnum))) return(0);
-
- jzrstwnd(wptr); /* restore previous window contents */
-
- free ((int *) wptr->buf); /* free up buffer memory */
-
- jzloccur(wptr->row,wptr->col);
- return(1); /* indicate success */
- }
-