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/_heapgrw.c

14 lines
303 B
C

#include <stdio.h>
#include <malloc.h>
void main()
{
char *p, *fmt_string;
fmt_string = "Amount of memory available is %u\n";
printf( fmt_string, _memavl() );
_nheapgrow();
printf( fmt_string, _memavl() );
p = (char *) malloc( 2000 );
printf( fmt_string, _memavl() );
}