Retro68/gcc/newlib/libc/syscalls/syssbrk.c
Wolfgang Thaller ec13cc9ce7 fix newlib
2018-12-29 09:59:36 +01:00

14 lines
216 B
C

/* connector for sbrk */
#include <reent.h>
#include <unistd.h>
extern void *_sbrk_r (struct _reent *, ptrdiff_t);
extern void *_sbrk (ptrdiff_t);
void *
sbrk (ptrdiff_t incr)
{
return _sbrk_r (_REENT, incr);
}