Oh come on, You must be either blind, lazy or irritating people deliberately.
I am sorry if I sound rude, but you posted the same message twice in different, but equally unrelated forums, here
To answer the question "What to do", the answer is read. Start by reading this FAQ
about smart forum question. Then get an introduction book on programming C and read a bit more. Then Google and read even more.
Blindly dumping the same question over and over again in the wrong forum is not going to get you anywhere.