ponnus
Full Member level 2
- Joined
- Mar 17, 2011
- Messages
- 142
- Helped
- 8
- Reputation
- 16
- Reaction score
- 8
- Trophy points
- 1,298
- Location
- Cochin, INDIA
- Activity points
- 2,226
Hi friends,
I want to convert a string number to hex. For example, I need to convert the string "4321" to integer, but in hexadecimal form.i.e, it should be like 0x4321. I tried the strtol(), but it produces the result in decimal form. Can anybody help me,,,,,,,,Please..........
I want to convert a string number to hex. For example, I need to convert the string "4321" to integer, but in hexadecimal form.i.e, it should be like 0x4321. I tried the strtol(), but it produces the result in decimal form. Can anybody help me,,,,,,,,Please..........