From b98040ad633b4e200689029607a8606a3d98fd4c Mon Sep 17 00:00:00 2001 From: Denis Monnerat Date: Thu, 3 Sep 2026 13:39:09 +0200 Subject: [PATCH] heap.c --- tp/tp1/src/ex2/heap.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tp/tp1/src/ex2/heap.c diff --git a/tp/tp1/src/ex2/heap.c b/tp/tp1/src/ex2/heap.c new file mode 100644 index 0000000..a3ef03d --- /dev/null +++ b/tp/tp1/src/ex2/heap.c @@ -0,0 +1,16 @@ +#include "helpers.h" +#include +int main(int argc, char **argv) +{ + long int index = -1; + //dirty(16 MB); + //clean(32 MB); + char * p = (char *) malloc(10 MB); + interlude(); + while(1){ + scanf("%ld",&index); + p[index] = 1; + } + + //return interlude(); +}