GPAK  1.0.0
A general-purpose archive library

◆ gpak_set_error_handler()

GPAK_API void gpak_set_error_handler ( gpak_t _pak,
gpak_error_handler_t  _error_handler 
)
Brief Description:\n Sets an error handler for a G-PAK archive.

This function sets a callback function to handle errors that occur during G-PAK operations.

Parameters
_pakA pointer to the gpak_t.
_error_handlerA callback function for handling errors.

Definition at line 328 of file gpak.c.

329 {
330  _pak->error_handler_ = _error_handler;
331 }
gpak_error_handler_t error_handler_
Definition: gpak_data.h:264

References gpak::error_handler_.