The objective is to break down the program module.c into several modules:
module1.c
and the corresponding headermodule1.h
, containingmodule1_function1
andmodule1_function2
module2.c
andmodule2.h
containingmodule2_function1
module3.c
andmodule3.h
containingmodule3_function1
andmodule3_enum
main.c
containing themain
function.
Take care of including in C files only the necessary headers. The expected output is:
./module
module3_function1 called with parameter CASE2
res1: 84
res2: 1.000000
res3: 1595255563434
To check the correctness of your program, use a Linux distribution with check50 installed. In a terminal, with all the mentioned source files in the local directory, check with this command:
check50 -l --ansi-log olivierpierre/comp26020-problems/2023-2024/week5-compilation/03-module