Name

error_setcb — sets the error callback.

Synopsis

#include <error.h>   
void error_setcb (cb); 
error_cb_t cb;
 

Arguments

cb

error callback function

Description

Sets the callback to be invoked when an error occurs. The callback function will be passed an 8-bit error code as argument.