Following the discussion at https://github.com/exercism/c/pull/959#discussion_r1501899860, this PR changes the API of the solution. Instead of two formally independent functions for the two sub-tasks the tests now require a single function that returns a struct with the two answers. That should reduce the boilerplate that students will have to write.
It also improves some small details of the example solution.
Following the discussion at https://github.com/exercism/c/pull/959#discussion_r1501899860, this PR changes the API of the solution. Instead of two formally independent functions for the two sub-tasks the tests now require a single function that returns a
struct
with the two answers. That should reduce the boilerplate that students will have to write.It also improves some small details of the example solution.