To call from a C or C++ program using the ANSI C functions, add
#include diFirmaSAT2.h
to your source code
and link with the diFirmaSAT2.lib
library.
For more details on the core functions you can call from C or C++, see the include file diFirmaSAT2.h
and the test code in TestFirmaSat.c
, both included in the distribution.
If you get errors, see Error codes.
Make sure you allocate memory for the output string buffers: see Pre-dimensioning szOut below.
#include <stdio.h> #include "diFirmaSAT2.h" int main(void) { long version; version = SAT_Version(); printf("Version=%ld\n", version); return 0; }