table of contents
| MAT_LOGINITFUNC(3) | Library Functions Manual | MAT_LOGINITFUNC(3) |
NAME¶
Mat_LogInitFunc —
Initializes matio logging with a caller-provided
logger.
SYNOPSIS¶
#include
<matio.h>
int
Mat_LogInitFunc(const char
*prog_name, void (*log_func)(int log_level, const char
*message));
DESCRIPTION¶
The
Mat_LogInitFunc()
function installs the caller-provided logging callback
log_func and records prog_name
for log message prefixes. It also resets verbose and silent logging state.
The log_level argument passed to the callback uses the
MATIO_LOG_LEVEL_* bit flags defined in
matio.h.
RETURN VALUES¶
The function returns 0.
SEE ALSO¶
| April 23, 2026 | Nixpkgs |