C API examples

Please see

and C API.

If you want to use the C++ API, which is just a wrapper around the C API, please see the following example: