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

16 lines
238 B
C
Raw Normal View History

#include <stdio.h>
#include <malloc.h>
void main()
{
char *p;
p = malloc( 200*1024 );
if( p != NULL ) free( p );
_heapenable( 0 );
/*
allocate memory from a pool that
has been capped at 200K
*/
}