home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_progs
/
prt_util
/
prtdrivr.lzh
/
PRTDRIVER
/
FLUSH.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-08-16
|
327b
|
21 lines
#include <exec/memory.h>
/*
* 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;
}
}