aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/msize.c
blob: 8c2b221e4509e35e55656b610a909393bcff6985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef MALLOC_PROVIDED
/* 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
_DEFUN (malloc_usable_size, (ptr),
	void *ptr)
{
  return _malloc_usable_size_r (_REENT, ptr);
}

#endif
#endif