Add c snippets of Switch