APPFS
Advanced practical programming for scientists
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
ex4_malloc.c File Reference
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( )

Definition at line 4 of file ex4_malloc.c.

5 {
6  int count = 0;
7 
8  while(NULL != malloc(1024*1024*1024))
9  {
10  count++;
11  printf("Got %4d GB\n", count);
12  }
13  printf("Out of memory after %d GB\n", count);
14 
15  return 0;
16 }
#define malloc(a)
Definition: mshell.h:53