snippet c code