converaion ASCII to HEX

anyone knows any formulae or flow chart or procedure to convert
ASCII characters into HEXA values...

man ascii

will pull up a chart you can use.

Cheers
ZB

printf("%x",'A');

will display the hex value for the character A

od -h will convert to hex

i found a solution with strtoul..

thanks..for the reply