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

#endif
#endif