update c snippets