OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [libgloss/] [m68k/] [fido-sbrk.c] - Rev 843

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.