From 4ea49d038a91e37a7e92a30e577ea5dd524857a2 Mon Sep 17 00:00:00 2001 From: Javier Tia Date: Thu, 29 Oct 2015 02:36:56 -0600 Subject: [PATCH] ex18.c: remove trailing whitespace and extra newlines @cosmetic --- ex18/ex18.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ex18/ex18.c b/ex18/ex18.c index 9de876a..9ac019f 100644 --- a/ex18/ex18.c +++ b/ex18/ex18.c @@ -20,8 +20,8 @@ void die(const char *message) typedef int (*compare_cb) (int a, int b); /** - * A classic bubble sort function that uses the - * compare_cb to do the sorting. + * A classic bubble sort function that uses the + * compare_cb to do the sorting. */ int *bubble_sort(int *numbers, int count, compare_cb cmp) { @@ -67,7 +67,7 @@ int strange_order(int a, int b) } } -/** +/** * Used to test that we are sorting things correctly * by doing the sort and printing it out. */ @@ -113,8 +113,6 @@ void dump(compare_cb cmp) printf("\n"); } - - int main(int argc, char *argv[]) { if (argc < 2) die("USAGE: ex18 4 3 1 5 6"); @@ -144,6 +142,5 @@ int main(int argc, char *argv[]) printf("SORTED:"); dump(sorted_order); - return 0; }