How morilhat-paul/template works
Project type and purpose
• This is a “template” C project intended to provide reusable utility libraries (“my” and “chained_list”), a simple application entry-point (sources/main.c), plus a full build/test/CI setup.
• Its purpose is to serve as a starting point for Epitech C assignments: you link against the two libraries and run your own code.
File structure
• Top-level directories:
• / → public headers for the template application
• lib/my/ → “my” utility library (strings, arrays, maths, I/O)
• lib/chained_list/ → singly-linked list operations
• sources/ → main.c, template.c, helper functions
• tests/ → unitary and functional test suites
• .github/workflows/ → CI definitions
• Build scripts:
• Makefile at root orchestrates building application, libraries, and tests.
• Each lib subdir has its own Makefile for isolated compilation.
• CI: GitHub Actions workflows build and run tests on every push.
README for additional insights
• Confirms modular separation: core application + two independent static libraries + test harness.
a. Main components
• Application Module (sources/main.c, template.c, is_helper.c)
• Utility Library “my” (lib/my/include + lib/my/sources)
• Library “chained_list” (lib/chained_list/include + sources)
• Build System (Makefiles)
• Test Suite (tests/unitary & tests/functional)
• Continuous Integration (GitHub workflows)
b. Relationships & interactions
• Application Module → links against → “my” library + “chained_list” library
• Tests → depend on → compiled libraries + application code
• Makefile → orchestrates → compile libs → compile main → compile/run tests
• CI Workflow → triggers → Makefile targets + code coverage reporting
c. Architectural patterns & design principles
• Modular static libraries: clear separation of concerns (string/math utilities vs data-structure utilities).
• Layered build: each library has its own Makefile, root Makefile aggregates.
• Test-driven organization: unitary tests map to each function; functional tests validate end-to-end behavior.
d. Key technologies/frameworks
• C99 standard
• GNU Make
• Bash (functional tests)
• GitHub Actions for CI
• Codecov for coverage reports