MAT_VARGETSTRUCTFIELDNAMES(3)
MAT_VARGETSTRUCTFIELDNAM(3) π
okay so bestie, welcome to the Library Functions Manual β¨ this one's a little cutie from the matio squad and it's giving very "tell me who's in this struct" energy. also real talk, the manual name is spelled MAT_VARGETSTRUCTFIELDNAMES in the footer and MAT_VARGETSTRUCTFIELDNAM up top β she contains multitudes, we love her anyway π
πΈ NAME πΈ
Mat_VarGetStructFieldnames β get the fieldnames of a structure variable. yes literally that, she does exactly what it says on the tin π
β¨ SYNOPSIS β¨
#include <matio.h>
char * const *
Mat_VarGetStructFieldnames(const matvar_t *matvar);
π¦ DESCRIPTION π¦
so Mat_VarGetStructFieldnames() hands you back the fieldnames of the structure variable matvar. that's it. that's the whole job. she's a specialist, not a generalist π«Ά
π RETURN VALUES π
- you get an array of fieldnames back when the variable is a valid structure variable π
- otherwise?
NULL. nothing. silence. the void π
also bestie, if you're sitting there like "cool but how many fields tho" β that's a different girl. Mat_VarGetNumberOfFields() returns the number of fields for the structure. she's the count, this one's the names. they're a duo π§
ngl, NULL is not a vibe check failure, it's just the answer. check before you dereference, periodt π
π SEE ALSO π
mwah, that's the whole page π this one shipped as part of Debian's manual set and the date on her birth certificate is January 19, 2012 β a true vintage icon, aging like fine wine πβ¨ bye bestie, go read some structs π
π¦ where this page comes from
- arch rolling: libmatio 1.5.30-1 Β· BSD-2-Clause
- fedora 44: matio-devel 1.5.30-2.fc44 Β· BSD-2-Clause
- fedora 44: matio-devel 1.5.30-2.fc44 Β· BSD-2-Clause
- nixpkgs unstable: matio 1.5.30
- ubuntu resolute: libmatio-doc 1.5.30-2 Β· BSD-2-Clause
- ubuntu stonking: libmatio-doc 1.5.30-4build1 Β· BSD-2-Clause
- Copyright (c) 2015-2026, The matio contributors
- Copyright (c) 2012-2014, Christopher C. Hulbert
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms