Leto is a library for developing modular and stable software in C language
The library is currently under development and will include:
DONE
leto-list — Singly Linked List LibraryDONE
leto-error — Error and warning handling libraryDONE
leto-test — Library for simple unit testingDONE
leto-so — Library for working with dynamic librariesDONE
leto-type — Miniature type libraryDONE
leto-utsf — Data transfer and storage library
How you use the library is up to you, but I recommend statically
linking it to your program.
If you follow the instructions in "How to compile it?" then adding the
library to your application is trivial.
- Include the heading
leto.h
in the right places - Add libleto.a to the compilation files (or copy it to the directory where the compiler stores the libraries and use the -lleto flag)
You can find code examples in the tests. Just look into the directory of the module you need (for example, leto-list) and open the test.c file
To compile you will need a compiler with C11 support and the dl
library.
To compile use:
make build
After that, the libleto.a
file will appear in the directory.
In addition, you can run tests:
make test
The documentation can be generated using the following script:
make docs
ALso, you can visit our website where documentation is posted.