heap.h File Reference

Heap subsystem (public interface). More...

#include <cfg/compiler.h>
#include <appconfig.h>

Go to the source code of this file.


Data Structures

struct  Heap
 A heap. More...

Functions

void heap_init (struct Heap *heap, void *memory, size_t size)
 Initialize heap within the buffer pointed by memory which is of size bytes.
void * heap_allocmem (struct Heap *heap, size_t size)
 Allocate a chunk of memory of size bytes from the heap.
void heap_freemem (struct Heap *heap, void *mem, size_t size)
 Free a chunk of memory of size bytes from the heap.

Detailed Description

Heap subsystem (public interface).

Version:
Id
heap.h 841 2007-10-08 17:35:23Z marco

Author:
Bernardo Innocenti <bernie@develer.com>

Definition in file heap.h.