To give the program access to the KMF function prototypes and type definitions, include the kmfapi.h file.
#include <stdio.h> #include <kmfapi.h>
Be sure to include the KMF library in the link step.
$ cc -o kmftest kmftest.c -lkmf