c snippet  code