Scroll to navigation

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 () 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

Mat_LogInit(3), Mat_LogClose(3)

April 23, 2026 Nixpkgs