Objective
Make counter.h safe to include more than once, then implement the three functions it declares.
Steps
$ counter c = { 7 }; counter_add(&c, 5); counter_value(&c)
12
$ counter c = { 7 }; counter_reset(&c); counter_value(&c)
0
Expected files
Allowed functions
None. Write every helper yourself.

Objective
Make counter.h safe to include more than once, then implement the three functions it declares.
Steps
$ counter c = { 7 }; counter_add(&c, 5); counter_value(&c)
12
$ counter c = { 7 }; counter_reset(&c); counter_value(&c)
0
Expected files
Allowed functions
None. Write every helper yourself.

Tests
Run the tests to grade your code