Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

testnew

Overview

This is a basic C framework built with dynamic library support using dlopen, dlsym, and dlclose. It supports hot-reloading, allowing library code to be updated without restarting the program.

File structure

testnew/
├── .config/easC/
│    └── config.json
├── src/
│   └── main.c
├── lib/
│   ├── libtestnew.c
│   ├── libtestnew.h
│   └── recompile.sh
├── build/
├── init.sh
├── staticompile.sh
├── Makefile      [OPTIONAL]
├── .clang-format [OPTIONAL]
└── README.md

Features

  • Dynamic function loading and reloading.
  • Easy recompile script for library changes.
  • Optional .clang-format for code styling.
  • Makefile for streamlined builds.

Usage

To compile the project [DYNAMIC BUILD]:

./init.sh

To compile the project [STATIC BUILD]:

./staticompile.sh 

To run the project:

cd build && ./$output_binary

To reload the library at runtime, press 'r'. Press 'q' to quit.

Requirements

  • gcc
  • make (optional)
  • clang-format (optional)