newlib-cygwin/newlib/libc/sys/sysnec810/sbrk.c

13 lines
155 B
C
Raw Permalink Normal View History

2000-02-18 03:39:52 +08:00
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;
}