clear Matrix Fix for Test 3
This commit is contained in:
parent
0e501b7e4e
commit
a18cdfded1
2
matrix.c
2
matrix.c
@ -30,6 +30,8 @@ void clearMatrix(Matrix *matrix)
|
||||
{
|
||||
free(matrix->buffer); //gibt den heap speicher frei
|
||||
matrix->buffer = NULL; //zeiger auf NULL setzen
|
||||
matrix->rows = 0;
|
||||
matrix->cols = 0;
|
||||
}
|
||||
|
||||
void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user