#include #include "counter.h" /* A test program for the counter library that tests each function in the library's API. It creates a new counter object and then increments it once for each command line argument. It prints the counter's count each time the counter is incremented, and at the end of the program prints the final argument count. */ main(int argc, char *argv[]) { Counter *myCount = new_counter(); int i; for (i = 0; i < argc; i++) { printf("myCount = %d\n", counter_increment(myCount)); } printf("final argument count = %d\n", counter_get_value(myCount)); }