18 lines
378 B
C
18 lines
378 B
C
|
#include <stdio.h>
|
||
|
#include <malloc.h>
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
char *p;
|
||
|
size_t size;
|
||
|
|
||
|
size = _memmax();
|
||
|
printf( "Maximum memory available is %u\n", size );
|
||
|
_nheapgrow();
|
||
|
size = _memmax();
|
||
|
printf( "Maximum memory available is %u\n", size );
|
||
|
p = (char *) _nmalloc( size );
|
||
|
size = _memmax();
|
||
|
printf( "Maximum memory available is %u\n", size );
|
||
|
}
|