My C sample code