adds snippets to c