home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
microcrn
/
issue_40.arc
/
C-REVIEW.ARC
/
ALLOCMEM.C
next >
Wrap
C/C++ Source or Header
|
1987-09-23
|
367b
|
21 lines
/*
Program: AllocMem (Allocate Memory)
Version: 1.00
Date: September 11, 1987
Tests the memory allocation/deallocation routines of a C compiler.
*/
char *malloc();
main()
{
char *x;
unsigned i;
for (i = 0; i < 50000; ++i)
{
x = malloc(10000);
free(x);
}
}