#include "libvecmat.h" int destroymat(matrix * matin) { //Recall the prototype! //typedef struct mat {int rows; int cols ; double **elements;} matrix; int i; for (i=0;irows;i++) { free(matin->elements[i]); } free(matin->elements); return 0; }