diff options
author | Jasper | 2025-09-09 12:16:26 +0200 |
---|---|---|
committer | Jasper | 2025-09-09 12:16:26 +0200 |
commit | 5fd2f59d9f30253cb0c64a06a4a305e90b89e3ae (patch) | |
tree | 1fa55449eb91489a428eeb48307d7d314b208860 /matrix.h | |
parent | 29f92b1c7dad80b40654f561fbe82f5c1d9df7b2 (diff) |
Variadic functions to free matrices/vectors
Renamed 'matrix_freen' to 'matrix_free_many1'. Frees a dynamic array of
matrices.
Diffstat (limited to 'matrix.h')
-rw-r--r-- | matrix.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -44,7 +44,8 @@ typedef struct Matrix { Matrix *matrix_alloc(size_t m, size_t n); void matrix_free(Matrix *mat); -void matrix_freen(Matrix **mats); +void matrix_free_many(size_t argcount, ...); +void matrix_free_many1(Matrix **mats); void matrix_print(const Matrix *mat); |