Retro68/gcc/newlib/libc/sys/sysnec810/sbrk.c
Wolfgang Thaller d464252791 re-add newlib
2017-04-11 23:13:36 +02:00

13 lines
155 B
C

extern int _end;
static char *end_of_data = (char *) &_end;
char *
_sbrk (int delta) {
char *ptr = end_of_data;
end_of_data += delta;
return ptr;
}