2002-11-13 09:20:31 +08:00
|
|
|
#ifndef MALLOC_PROVIDED
|
2000-02-18 03:39:52 +08:00
|
|
|
/* msize.c -- a wrapper for malloc_usable_size. */
|
|
|
|
|
|
|
|
#include <_ansi.h>
|
|
|
|
#include <reent.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <malloc.h>
|
|
|
|
|
|
|
|
#ifndef _REENT_ONLY
|
|
|
|
|
|
|
|
size_t
|
2017-12-04 11:43:30 +08:00
|
|
|
malloc_usable_size (void *ptr)
|
2000-02-18 03:39:52 +08:00
|
|
|
{
|
|
|
|
return _malloc_usable_size_r (_REENT, ptr);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2002-11-13 09:20:31 +08:00
|
|
|
#endif
|