-
Notifications
You must be signed in to change notification settings - Fork 65
Home
libfort is a simple crossplatform library to create formatted text tables.
libfort is written in C and to use it you should include fort.h in your source files and compile with fort.c
file.
The functions generally follow standard C conventions. They tend to return 0 or a pointer when acting properly, and negative integer numbers or NULL when something went wrong.
For C++ projects that use compiler with C++11 support (and later) there are also availabe convenient C++ wrappers around C functions (see fort.hpp
in lib direrctory). In that case instead of fort.h
you will need to include fort.hpp
in your source files and use C++ libfort API.
libfort doesn't use any threading itself. Therefore you shouldn't specify default table properties or work with the same table from different threads without external synchronization. However, it should be safe to create different tables from different threads and work with them in each thread separately.