/** * A little program. Think of the main method as being test code to * validate the other functions in m1. * * The problem here is that the main in m1 will conflict with the main in m2. * To handle this, when compiling my for use by m2 * gcc -c -DM1C_MAIN m1.c * which removes the main in m1 from compilation. * * @author gtowell * Created: April 6, 2021 * **/ #include #include "m1.h" #include "m2.h" int dom2() { return 2*dom1(); } int main(int argc, char const *argv[]) { printf("M2 %d %d", dom1(), dom2()); return 0; }