Added test program for C library

To help people to understand better the library I wrote a simple test C program.