| eRPC API Reference Rev. 1.8.1 NXP Semiconductors

- Main Page
- API Reference
- Classes
- Files

Files | Functions
Memory
Porting

Memory allocation. More...

## Overview

Memory allocation.

Collaboration diagram for Memory:

## Files
file | erpc_port.h

## Functions
void * | erpc_malloc (size_t size)
| This function is used for allocating space. More...
void | erpc_free (void *ptr)
| This function free given memory block. More...

## Function Documentation

void* erpc_malloc | ( | size_t | size | ) |

This function is used for allocating space.

Parameters

  [in] | size | Size of memory block which should be allocated.

Returns
  Pointer to allocated space or NULL.

void erpc_free | ( | void * | ptr | ) |

This function free given memory block.

Parameters

  [in] | ptr | Pointer to memory which should be freed.