add example c code