iteration_callback.c File Reference
#include <stdio.h>
#include <stdlib.h>

Functions

void set_callback_function (void(*func)())
 
void iteration_callback ()
 

Variables

void(* callback_function )()
 

Function Documentation

◆ iteration_callback()

void iteration_callback ( )

This will make a call to the function set up if it is not null.

◆ set_callback_function()

void set_callback_function ( void(*)()  func)

The function that will be called. It has to be passed as pointer to a function because it will be dinamically linked (no dependency at compilation time)

Parameters
funcFunction will be called after each iteration

Variable Documentation

◆ callback_function

void(* callback_function) ()