update c snippet