1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef KNOB_HEAP_H #define KNOB_HEAP_H #ifdef __cplusplus extern "C" { #endif #include <stdint.h> void *get_block(uint32_t bytes) __attribute__ ((malloc)); void free_block(void *block); #ifdef __cplusplus } #endif #endif