Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ex18.c: remove trailing whitespace and extra newlines @cosmetic #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions ex18/ex18.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -144,6 +142,5 @@ int main(int argc, char *argv[])
printf("SORTED:");
dump(sorted_order);


return 0;
}