uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
malloc.h File Reference
#include <reent.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef void *(* malloc_t )(size_t size)
 
typedef void(* free_t )(void *ptr)
 
typedef void *(* realloc_t )(void *ptr, size_t size)
 

Functions

void * base_malloc (size_t size)
 
void base_free (void *ptr)
 
void * base_realloc (void *ptr, size_t size)
 

Variables

malloc_t malloc
 
free_t free
 
realloc_t realloc
 

Typedef Documentation

typedef void(* free_t)(void *ptr)

Definition at line 9 of file malloc.h.

typedef void*(* malloc_t)(size_t size)

Definition at line 8 of file malloc.h.

typedef void*(* realloc_t)(void *ptr, size_t size)

Definition at line 10 of file malloc.h.

Function Documentation

void base_free ( void *  ptr)

Definition at line 159 of file malloc.c.

void* base_malloc ( size_t  size)

Definition at line 34 of file malloc.c.

void* base_realloc ( void *  ptr,
size_t  size 
)

Definition at line 107 of file malloc.c.

Variable Documentation

free_t free

Definition at line 206 of file malloc.c.

malloc_t malloc

Definition at line 205 of file malloc.c.

realloc_t realloc

Definition at line 207 of file malloc.c.