This commit is contained in:
Jack Halford 2017-02-20 17:12:51 +01:00
parent b635e5c158
commit 555d3e2cc5

20
malloc/tests/main.c Normal file
View file

@ -0,0 +1,20 @@
#include <stdlib.h>
#include "../includes/malloc.h"
int main(void)
{
void *ptr0 = malloc(4096);
show_alloc_mem();
void *ptr1 = malloc(16);
show_alloc_mem();
free(ptr0);
show_alloc_mem();
void *ptr2 = malloc(16);
show_alloc_mem();
void *ptr3 = malloc(32);
show_alloc_mem();
}