STRING To HEX Converter

Hello,

I tried your function int x2i(char *s) . It works fine for 3 digits.

But my value is 6 digits like FC031A. How can I change your routine

to do 6 digits.

Thanks

By