how can view in some way the "history" of the browser using some c programme?
That's going to depend on how the browser stores it's history. Find that out first, and you on the way to answering your own question.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]