Fix C API examples