A simple C project dealing with pointers and memory allocation