Sign up for a GitHub account Sign in All Gists Xe / reaper.c secret Created June 07, 2015 Code Revisions 1 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav View reaper.c reaper.c Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 # include < stdlib.h > # include < stdio.h > # include < string.h > # define AMOUNT 1024 * 1024 * 1024 void * mem[ 16 ]; int main () { int i; for (i= 0 ; i < 16 ; i++) { mem[i] = malloc (AMOUNT); // One gigabyte XXX do not do this memset (mem[i], 0 , AMOUNT); printf ( " Allocated %d GB of ram... \n " , i+ 1 ); } printf ( " 16 GB of memory used, waiting ...