How to make a program against the libcalcfiles library
You will find in the test folder of the library source archive a
test/example program which uses this library.
Below is a light version (error management has been removed) of
this program to make it clearer:
#include <calcfiles.h>
int main(int argc, char **argv)
{
FlashContent content;
calcfiles_library_init();
calcfiles_file_read_flash("ticabfra.89k", &content);
calcfiles_file_display_flash(&content);
return 0;
}
Compile this program with:
gcc -Os -g -Wall -Wextra `pkg-config --cflags --libs calcfiles` example.c -o example
That's all!