add a template of c code