Translate decimal in string to heaxdecimal in string
1 réponse
loic.bourgeois
Hello,
I would like Translate decimal string ("123456789") from a string to
hexadecimal in string ("75BCD15") without use strtol or strtoul or
some thing like that. The reason is the decimal number can be very
very long.
example to update:
char dec[]="123456789";
char hexa[];
sprintf(hexa, "%lX", strtoul(dec,10)); ==> This is to dangerouse,
because the value can be very hight.