@@ -14,8 +14,11 @@ Matrix createMatrix(unsigned int rows, unsigned int cols)
if(rows==0||cols==0)
{
printf("Error");
exit(EXIT_FAILURE);
m.rows=0;
m.cols=0;
m.buffer=NULL;
returnm;
}
m.buffer=calloc(rows*cols,sizeof(MatrixType));
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.