API: example of C API