From 5b32e1475c1c0840a325066a1e176a0880cb1e33 Mon Sep 17 00:00:00 2001 From: "AD005\\z0046beb" Date: Wed, 12 Nov 2025 11:15:13 +0100 Subject: [PATCH] =?UTF-8?q?ein=20#include=20und=20exit=20failiure=20bei=20?= =?UTF-8?q?matrixMultiply=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- matrix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/matrix.c b/matrix.c index 3c18152..685c857 100644 --- a/matrix.c +++ b/matrix.c @@ -1,5 +1,6 @@ #include #include +#include #include "matrix.h" // TODO Matrix-Funktionen implementieren @@ -192,4 +193,9 @@ Matrix multiply(const Matrix matrix1, const Matrix matrix2) return matrix_erg; } + else + { + printf("Matrix multiplication not possible\n"); + exit(EXIT_FAILURE); + } } \ No newline at end of file