From 5b266bab1c35617a34989bd801e16854ad789f86 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Tue, 4 Jan 2022 11:08:10 +0100 Subject: feat: ERROR != assert --- shellsort.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shellsort.c') diff --git a/shellsort.c b/shellsort.c index b19f547..29e6bf8 100644 --- a/shellsort.c +++ b/shellsort.c @@ -37,8 +37,7 @@ test(T a[], size_t n) { for ( size_t i = 1; i < n; ++i ) { if ( a[i - 1] > a[i] ) { - fprintf(stderr, "Error\n"); - exit(EXIT_FAILURE); + ERROR("sortierung passt nicht"); } } } -- cgit v1.3