diff --git a/matrix.c b/matrix.c index 59fd963..de25a4a 100644 --- a/matrix.c +++ b/matrix.c @@ -13,7 +13,10 @@ typedef struct Matrix { Matrix createMatrix(unsigned int rows, unsigned int cols) { - + Matrix newMatrix; + newMatrix.rows = rows; + newMatrix.cols = cols; + newMatrix.buffer = calloc(rows*cols, sizeof(MatrixType)) } void clearMatrix(Matrix *matrix)