1 2 3 4 5 6
#include <bits/glibc/glibc_malloc.h> #include <mlibc/allocator.hpp> size_t malloc_usable_size(void *p) { return getAllocator().get_size(p); }