core/newlib/sbrk_r.c File Reference

#include "sceptre.h"
#include <reent.h>

Go to the source code of this file.

Functions

void * _sbrk_r (struct _reent *ptr, ptrdiff_t incr)

Variables

char end []

Detailed Description

newlib - sbrk.

Heap "management".

Definition in file sbrk_r.c.


Function Documentation

void* _sbrk_r ( struct _reent *  ptr,
ptrdiff_t  incr 
)

This function has to be implemented if you want to use malloc in your programs.

Grow the heap.

Parameters:
p_reent Pointer to a structure that will receive the return value.
incr The number of bytes to grow the heap with.

Definition at line 29 of file sbrk_r.c.


Variable Documentation

char end[]

This one is defined in the linker script and points to the beginning of unused RAM.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated by  doxygen 1.6.2