Fuuuu...

Some spaghetti code! But at least it helped me better understanding
C pointers!!