source: trunk/libs/newlib/src/newlib/libc/stdlib/mtrim.c @ 543

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

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

File size: 257 bytes
Line 
1#ifndef MALLOC_PROVIDED
2/* mtrim.c -- a wrapper for malloc_trim.  */
3
4#include <_ansi.h>
5#include <reent.h>
6#include <stdlib.h>
7#include <malloc.h>
8
9#ifndef _REENT_ONLY
10
11int
12malloc_trim (size_t pad)
13{
14  return _malloc_trim_r (_REENT, pad);
15}
16
17#endif
18#endif
Note: See TracBrowser for help on using the repository browser.