Contiki-NG
Files | Functions
Generic Newlib customizations

Library providing generic implementations of Newlib features for Contiki. More...

Files

file  syscalls.c
 System calls.
 

Functions

caddr_t _sbrk (int incr)
 Enlarges the allocated heap space. More...
 

Detailed Description

Library providing generic implementations of Newlib features for Contiki.

Function Documentation

◆ _sbrk()

caddr_t _sbrk ( int  incr)

Enlarges the allocated heap space.

Parameters
incrNumber of bytes by which to increase the heap space
Returns
The previous end of heap on success (which is also a pointer to the start of the newly allocated memory if incr is positive), or (caddr_t)-1 with errno set to ENOMEM on error

Definition at line 63 of file syscalls.c.