diff options
Diffstat (limited to 'HeapLAB/.src/demo_fastbins.c')
-rw-r--r-- | HeapLAB/.src/demo_fastbins.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/HeapLAB/.src/demo_fastbins.c b/HeapLAB/.src/demo_fastbins.c new file mode 100644 index 0000000..a50aa1f --- /dev/null +++ b/HeapLAB/.src/demo_fastbins.c @@ -0,0 +1,19 @@ +#include <stdio.h> +#include <stdlib.h> + +int main(int argc, char* argv[]) { + + void* a = malloc(1); + void* b = malloc(1); + void* c = malloc(1); + + free(a); + free(b); + free(c); + + void* d = malloc(1); + void* e = malloc(1); + void* f = malloc(1); + + return 0; +} |