Instantly share code, notes, and snippets.

View malloc_llist.c
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#define PADDING (sizeof(block_t) + sizeof(double) - 1)
#define MINSLICE (sizeof(block_t) + sizeof(double) + 1)
View malloc_buddy.c
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <stdarg.h>
#include <assert.h>
//#define DEBUG