source: trunk/libs/newlib/src/newlib/libc/stdlib/realloc.c @ 577

Last change on this file since 577 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 324 bytes
Line 
1#ifdef MALLOC_PROVIDED
2int _dummy_realloc = 1;
3#else
4/* realloc.c -- a wrapper for realloc_r.  */
5
6#include <_ansi.h>
7#include <reent.h>
8#include <stdlib.h>
9#include <malloc.h>
10
11#ifndef _REENT_ONLY
12
13void *
14realloc (void *ap,
15        size_t nbytes)
16{
17  return _realloc_r (_REENT, ap, nbytes);
18}
19
20#endif
21#endif /* MALLOC_PROVIDED */
Note: See TracBrowser for help on using the repository browser.