c snippet main