CiFEr
Functions
common.h File Reference

Common library functionality. More...

Go to the source code of this file.

Functions

cfe_error cfe_init (void)
 
void * cfe_malloc (size_t size)
 

Detailed Description

Common library functionality.

Function Documentation

◆ cfe_init()

cfe_error cfe_init ( void  )

This function initializes the library. It ensures that the system's random number generator has been properly seeded. This function must be called before any other functions from this library.

Returns
Error code

◆ cfe_malloc()

void* cfe_malloc ( size_t  size)

Malloc wrapper which aborts on failure (out-of-memory error).

Parameters
sizeSize of memory block
Returns
Pointer to allocated memory