How to make a program against the tifiles library
You will find in the test folder of the libary source archive a
test/example program which uses this library.
Below is listed a light version (error management has been removed) of
this program to make it clearer:
#include <tifiles.h>
int main(int argc, char **argv)
{
FlashContent content;
tifiles_library_init();
tifiles_file_read_flash("ticabfra.89k", &content);
tifiles_file_display_flash(&content);
return 0;
}
That's all !
NOTE: for this example to work, you probably have to add compiler options related to the include path and library path, e.g.
gcc -I/usr/include/tilp2 -Os -g -Wall -W <...>.c -o <...> -ltifiles2
or better
gcc -Os -g -Wall -W `pkg-config --cflags --libs tifiles2` tifiles.c -o tifiles