Telit Cinterion IoT Developer Community
Folder Structure to Organize Code
Tutorial, December 7, 2022 - 10:57am, 780 views
It can be daunting to manage growing code if all the header and source files are in the root folder. But fret not, attached is an example in this article where it shows you to create multiple sub-folders in your source code directory to maintain and compile code.
In this example, I have created 2 subfolders called "inc" and "src". The "inc" folder keeps all the headers files and the "src" folder holds all the source files.
The folder.c file then includes the header file stored in subfolder "inc" and calls the functions defined in "src".
This clearly demonstrates that code can be organized and compiled recursively with folder structure in place.