Skip to content

Commit b5ce9e2

Browse files
committed
Add note about the lack of main() methods
1 parent 6b6b7a4 commit b5ce9e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ test code to handle memory leaks
3838
Do be careful to not remove or weaken the tests, though; at a minimum
3939
you definitely want to be able to pass the tests as given.
4040

41+
:bangbang: Neither of the parts of this lab comes with a `main()` function.
42+
We could add one, but both of the target functions (`mergesort()` and
43+
`array_merge()`) are really "library" functions that don't make a
44+
lot of sense as functions that users would interact with directly. So
45+
we just have them called by the tests but don't provide a way for you
46+
to call them directly. If you want to create a `main.c` for either or
47+
both of the projects feel free to do so, but it's definitely not
48+
expected.
49+
4150
## Fixing memory problems
4251

4352
Passing the tests is arguably just the first half of each of these problems,

0 commit comments

Comments
 (0)