This commit is contained in:
Attila Body 2025-05-26 10:22:03 +02:00
parent 0c66ff89b3
commit 9b8308eb4a
Signed by: abody
GPG key ID: BD0C6214E68FB5CF
11 changed files with 121 additions and 0 deletions

11
libs/lib1/src/lib1.c Normal file
View 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");
}