Add a C sample code