C code snippets