C snippets