Working
This commit is contained in:
parent
0c66ff89b3
commit
9b8308eb4a
11 changed files with 121 additions and 0 deletions
11
libs/lib1/src/lib1.c
Normal file
11
libs/lib1/src/lib1.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include "lib1.h" // Include lib1's own header
|
||||
#include "lib2.h" // Include lib2's header to call lib2_function
|
||||
#include "lib3.h" // Include lib3's header to call lib3_function
|
||||
#include <stdio.h> // Include standard I/O here, as printf is used in this source file.
|
||||
|
||||
void lib1_function() {
|
||||
printf("This is a function from Library 1.\n");
|
||||
lib2_function(); // Call function from lib2
|
||||
lib3_function(); // Call function from lib3
|
||||
printf("Lib1 has called functions from Lib2 and Lib3.\n");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue