Skip to content

Commit 45b3136

Browse files
authored
Merge pull request #12 from UMM-CSci-Systems/edit-code-for-actions
Fix problem with `mergesort` declaration
2 parents de97abf + ab34c32 commit 45b3136

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mergesort/mergesort.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#include "mergesort.h"
22

3-
void mergesort(int, int*) {
3+
void mergesort(int size, int values[]) {
44
// This obviously doesn't actually do any *sorting*, so there's
55
// certainly work still to be done.
6+
//
7+
// Remember that a key goal here is to learn to use
8+
// `malloc/calloc` and `free`, so make sure you explicitly
9+
// allocate any new arrays that you need, even if you
10+
// might not strictly need to.
611
return;
712
}

0 commit comments

Comments
 (0)