Code snippet in C