This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/_memavl.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() );
}