aboutsummaryrefslogtreecommitdiff
path: root/shellsort.c
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2022-01-04 11:08:10 +0100
committerThomas Schmucker <ts@its1.de>2022-01-04 11:08:10 +0100
commit5b266bab1c35617a34989bd801e16854ad789f86 (patch)
treefc8b1623065a936fb5f3594b58cb843644204c69 /shellsort.c
parent20e4846be684195401078aad209aa999c4171df4 (diff)
downloaddata-structures-5b266bab1c35617a34989bd801e16854ad789f86.tar.gz
data-structures-5b266bab1c35617a34989bd801e16854ad789f86.tar.bz2
data-structures-5b266bab1c35617a34989bd801e16854ad789f86.zip
feat: ERROR != assert
Diffstat (limited to 'shellsort.c')
-rw-r--r--shellsort.c3
1 files changed, 1 insertions, 2 deletions
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)
37{ 37{
38 for ( size_t i = 1; i < n; ++i ) { 38 for ( size_t i = 1; i < n; ++i ) {
39 if ( a[i - 1] > a[i] ) { 39 if ( a[i - 1] > a[i] ) {
40 fprintf(stderr, "Error\n"); 40 ERROR("sortierung passt nicht");
41 exit(EXIT_FAILURE);
42 } 41 }
43 } 42 }
44} 43}