home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d01xx
/
d0113.lha
/
DosDev
/
flush.c
< prev
next >
Wrap
C/C++ Source or Header
|
1987-11-21
|
302b
|
20 lines
/*
* Allocate memory until we can't ... force the system to flush all
* non-active DOS devices, libraries, fonts, etc....
*/
extern void *AllocMem();
main()
{
char *ptr;
long bytes = 1 << 9;
while (ptr = AllocMem(bytes, MEMF_PUBLIC)) {
FreeMem(ptr, bytes);
bytes <<= 1;
}
}