cct (Common C Tools)
This is a collection of useful and common C tools that can be installed and used in any C project using C99 or higher. The goal of this project is to provide a set of reusable and well-tested functions that can be easily integrated into various C projects.
Library Structure
The CCT library is compiled into a static library, which includes several header files. The main header files are:
- log.h: Provides logging functionality with customizable log levels and output streams
Installation
To install the CCT library, follow these steps:
- Clone the repository:
git clone https://github.com/vas-dav/cct.git
- Build the library:
cd cct && make
- Install the library:
make install
Using the library
This example is trivial only created to get started. More diverse use cases and documentation is available in docs.
Once the library is installed, it can be used in any source file as follows:
#include <cct/log.h>
int main(int argc, char **argv) {
cct_log("Hello from CCT!");
return 0;
}
And compiled inlcuding the library:
<your_c_compiler> hello.c -lcct
Documentation
All of the documentation can be found here.
Languages
C
93.9%
Makefile
6.1%