I am not sure, which editor you have used to write the code.
If you can help me to get that editor to debug the code, that would be great.
I will debug the code in that editor and let you know, i can help you or not.
The code is written in C language.
Please provide the Editor name, that used to develope the code.
After initial overview of code, i can say it is related to some newpaper, PDFreader, jpg reader like that.
Thanks,
Mrityunjay
skype: mrityunjay98