home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
msdos
/
c
/
jazlib.arc
/
JZCLSWND.C
< prev
next >
Wrap
Text File
|
1986-05-28
|
826b
|
29 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│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 */
}