From 1bc015efddaf7dc4ddd1b6b6831c43e7ad4582c0 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 31 Jan 2018 05:27:54 +0000 Subject: malloc: add malloc_usable_size() --- include/malloc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/malloc.h b/include/malloc.h index b16a1105a..e52792381 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -162,6 +162,8 @@ extern int malloc_trim(size_t pad); /* Prints brief summary statistics on the stderr. */ extern void malloc_stats(void); +extern size_t malloc_usable_size(void *); + /* SVID2/XPG mallopt options */ #ifndef M_MXFAST # define M_MXFAST 1 /* UNUSED in this malloc */ -- cgit v1.2.3