Oh wow. I'm quite sure the community could assist you - I haven't programmed C in this millennium! So I'll be of no help to you.