15 lines
258 B
C
15 lines
258 B
C
#include <stdio.h>
|
|
#include <malloc.h>
|
|
|
|
void main()
|
|
{
|
|
char *p;
|
|
char *fmt = "Memory available = %u\n";
|
|
|
|
printf( fmt, _memavl() );
|
|
_nheapgrow();
|
|
printf( fmt, _memavl() );
|
|
p = (char *) malloc( 2000 );
|
|
printf( fmt, _memavl() );
|
|
}
|