MAT_VARDELETE(3)
β¨ MAT_VARDELETE(3) β¨
okay bestie, pull up a chair π this is a page from the Library Functions Manual, and it's about one very specific little function that does one very specific little thing. no cap.
π NAME π
Mat_VarDelete β deletes a MAT variable from a file. that's it. that's the whole job. she's a simple queen and she knows it π
πΈ SYNOPSIS πΈ
#include <matio.h>
int
Mat_VarDelete(mat_t *matfp, const char *name);
look at her. two arguments. no drama. iconic. β¨
π¦ DESCRIPTION π¦
so the way that this works is: Mat_VarDelete() takes the MAT variable called name and deletes it from the MAT file that's represented by the MAT file structure matfp. ποΈβ¨
that's it!! it goes in, it finds the variable by name, and it's gone. not me being emotionally attached to a variable, couldn't be me π
π RETURN VALUES π
0β success, we ate, no crumbs, the variable is deleted π- anything else β an error value gets returned instead π something went sideways
bestie, the manual is very chill about it and just says "an error value is returned" β so like, don't assume it's a specific number, okay? check that it's 0 and you're golden. π
and that's the whole page, periodt. π«Ά
this one comes from Debian, dated October 20, 2017 β so if you're reading this in the future, yes, she's been serving this exact energy since 2017 and she's not changing. πβ¨πΈπ¦π
π¦ 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