URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [m68k/] [fido-sbrk.c] - Rev 561
Go to most recent revision | Compare with Previous | Blame | View Log
#include <stddef.h> extern char _end[]; static char *curbrk = _end; extern char _heapend; /* End of heap */ void * sbrk (ptrdiff_t incr) { char *oldbrk = curbrk; if (curbrk + incr > &_heapend) return (void *) -1; curbrk += incr; return oldbrk; }
Go to most recent revision | Compare with Previous | Blame | View Log