how can I transfer a char[] holding an hex value (something like : "FFFAFF88" ) into a simple int?

I already made one to transfer decimal char into int but hex im kinda clueless..

Dont tell me to use another function held in some library I wanna make my own using only <iostream> if possible.

thx
Luigi