SAM Example 0
This example shows how to initialize and destroy a SAM context.
/* Declare a SAM context variable */
/* Initialize the SAM context */
/* Destroy the SAM context */
/* Print the version of the used SAM library */
/* No context is needed for this operations */
In line 7 the context variable is declared, that has to be passed by reference to the commands in line 11 and 14, that initialize and destroy the context.
How to obtain the version and date of the library is shown with the commands in lines 19 and 20.
 Compile Command
gcc example0.c -lsam -lpthread -o example0