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 and
here. Both times you were suggested to a) find a C forum, as this question is clearly related to C, not C#, JavaScript or Assembly, and b) do your own homework.
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.
Cheers,
Imar