APPFS
Advanced practical programming for scientists
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
ex4_malloc.c
Go to the documentation of this file.
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
int
main
()
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
}
main
int main()
Definition:
ex4_malloc.c:4
malloc
#define malloc(a)
Definition:
mshell.h:53
Generated on Sun Nov 16 2014 23:14:05 for APPFS by
1.8.6