c code finish