C snippets and examples