From 278fc569840cf44eba39117a2d027c73b7963fda Mon Sep 17 00:00:00 2001 From: MarcUs7i Date: Wed, 7 May 2025 16:41:09 +0200 Subject: [PATCH] Added my name --- bubble_sort.c | 2 +- bubble_sort.h | 2 +- insertion_sort.c | 2 +- insertion_sort.h | 2 +- sorting.c | 4 ++-- sorting.h | 4 ++-- sorting_criteria.c | 4 ++-- sorting_criteria.h | 6 +++--- stopwatch.c | 4 ++-- stopwatch.h | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/bubble_sort.c b/bubble_sort.c index 7be69ba..969eae4 100644 --- a/bubble_sort.c +++ b/bubble_sort.c @@ -3,7 +3,7 @@ *----------------------------------------------------------------------------- * Exercise Number: S05 * Title: Bubble sort implementation - * Author: */;/* + * Author: Marc Tismonar *----------------------------------------------------------------------------- * Description: * Implements the bubble sort strategy diff --git a/bubble_sort.h b/bubble_sort.h index a90b4f7..d4443e0 100644 --- a/bubble_sort.h +++ b/bubble_sort.h @@ -3,7 +3,7 @@ * --------------------------------------------------------- * Exercise Number: S05 * Title: Bubble sort - * Author: */;/* + * Author: Marc Tismonar * ---------------------------------------------------------- * Description: * Implements the bubble sort strategy diff --git a/insertion_sort.c b/insertion_sort.c index b52874e..7787de1 100644 --- a/insertion_sort.c +++ b/insertion_sort.c @@ -3,7 +3,7 @@ *----------------------------------------------------------------------------- * Exercise Number: S05 * Title: Insertion sort implementation - * Author: */;/* + * Author: Marc Tismonar *----------------------------------------------------------------------------- * Description: * Implements the insertion sort strategy diff --git a/insertion_sort.h b/insertion_sort.h index 7c47789..4ab6a62 100644 --- a/insertion_sort.h +++ b/insertion_sort.h @@ -3,7 +3,7 @@ * --------------------------------------------------------- * Exercise Number: S05 * Title: Insertion sort - * Author: */;/* + * Author: Marc Tismonar * ---------------------------------------------------------- * Description: * Implements the insertion sort strategy diff --git a/sorting.c b/sorting.c index 70e557a..1050fd3 100644 --- a/sorting.c +++ b/sorting.c @@ -1,9 +1,9 @@ /*----------------------------------------------------------------------------- - * HTBLA-Leonding / Class: + * HTBLA-Leonding / Class: 2IHIF *----------------------------------------------------------------------------- * Exercise Number: S05 * Title: Sorting support functions - * Author: */;/* + * Author: Marc Tismonar *----------------------------------------------------------------------------- * Description: * Basic support functions for sorting diff --git a/sorting.h b/sorting.h index 3d3521f..d91ece3 100644 --- a/sorting.h +++ b/sorting.h @@ -3,7 +3,7 @@ * --------------------------------------------------------- * Exercise Number: S05 * Title: Sorting support functions - * Author: */;/* + * Author: Marc Tismonar * ---------------------------------------------------------- * Description: * Interface for sorting algorithms @@ -46,7 +46,7 @@ typedef enum { * @param list The list to initialize. * @param item_count The number of items to insert. */ -void init_list_random(); +void init_list_random(IntList list, int item_count); /** * Prints the values stored in the given list. diff --git a/sorting_criteria.c b/sorting_criteria.c index d78e081..c093e44 100644 --- a/sorting_criteria.c +++ b/sorting_criteria.c @@ -1,9 +1,9 @@ /*----------------------------------------------------------------------------- - * HTBLA-Leonding / Class: + * HTBLA-Leonding / Class: 2IHIF *----------------------------------------------------------------------------- * Exercise Number: S05 * Title: Sorting criteria - * Author: */;/* + * Author: Marc Tismonar *----------------------------------------------------------------------------- * Description: * Implementation of sorting criteria diff --git a/sorting_criteria.h b/sorting_criteria.h index 8d5367d..eb1f8ad 100644 --- a/sorting_criteria.h +++ b/sorting_criteria.h @@ -3,7 +3,7 @@ * --------------------------------------------------------- * Exercise Number: S05 * Title: Sorting criteria - * Author: */;/* + * Author: Marc Tismonar * ---------------------------------------------------------- * Description: * Interface for sorting algorithms @@ -35,7 +35,7 @@ * @param snd The value to compare. * @return True if the criterion is satisfied, false otherwise. */ - is_in_asc_order(); +bool is_in_asc_order(); /** * Determines whether or not `fst` is larger than or equal to `snd` (descending order). @@ -44,6 +44,6 @@ * @param snd The value to compare. * @return True if the criterion is satisfied, false otherwise. */ - is_in_desc_order(i); +bool is_in_desc_order(i); #endif \ No newline at end of file diff --git a/stopwatch.c b/stopwatch.c index b362bb5..3c587c3 100644 --- a/stopwatch.c +++ b/stopwatch.c @@ -1,9 +1,9 @@ /*----------------------------------------------------------------------------- - * HTBLA-Leonding / Class: + * HTBLA-Leonding / Class: 2IHIF *----------------------------------------------------------------------------- * Exercise Number: S05 * Title: Stopwatch - * Author: */;/* + * Author: Marc Tismonar *----------------------------------------------------------------------------- * Description: * Implementation of a simple stopwatch diff --git a/stopwatch.h b/stopwatch.h index 736107e..eca3cd4 100644 --- a/stopwatch.h +++ b/stopwatch.h @@ -3,7 +3,7 @@ * --------------------------------------------------------- * Exercise Number: S05 * Title: Stopwatch - * Author: */;/* + * Author: Marc Tismonar * ---------------------------------------------------------- * Description: * A stop watch to measure CPU time