Thinking in C code