mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
mm: Implement malloc_usable_size
defined here: https://man7.org/linux/man-pages/man3/malloc_usable_size.3.html Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I5988bb28375626188312bd0a0ba3fc12db66f644
This commit is contained in:
committed by
David Sidrane
parent
7a1342f503
commit
3ea8d574fe
@@ -25,6 +25,8 @@
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
@@ -55,6 +57,7 @@ extern "C"
|
||||
#endif
|
||||
|
||||
struct mallinfo mallinfo(void);
|
||||
size_t malloc_usable_size(FAR void *ptr);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user