added c snippet