---
name: "Mat_GetLibraryVersion"
section: "3"
platform: "linux"
package: "libmatio"
version: "1.5.30-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Mat_GetLibraryVersion"
---

# Mat\_GetLibraryVersion(3)

Gets the version of the matio library.

## NAME

**Mat\_GetLibraryVersion** – Gets the version of the matio library.

## SYNOPSIS

**#include \<matio.h\>**

*void*\

**Mat\_GetLibraryVersion**(*int \*major*, *int \*minor*, *int \*release*);

## DESCRIPTION

The **Mat\_GetLibraryVersion**() function returns the major, minor, and release version numbers of the library. These can be used to check that the version specified in the header by MATIO\_MAJOR\_VERSION, MATIO\_MINOR\_VERSION, and MATIO\_RELEASE\_LEVEL match the version on the library.
