S
Salvatore Di Fazio
Hi guys,
how can I convert a hex string in a sequence of chars?
I've thought, if I get a hex string like that:
54657374
I need to get number one for time and convert it in decimal in the
following way:
5x16^7
4x16^6
6x16^5
5x16^4
7x16^3
3x16^2
7x16
4
= number_tot
and now
char buf[256]
sprintf(buf, "%s", number_tot);
is it correct?
Is there a better way?
tnx
how can I convert a hex string in a sequence of chars?
I've thought, if I get a hex string like that:
54657374
I need to get number one for time and convert it in decimal in the
following way:
5x16^7
4x16^6
6x16^5
5x16^4
7x16^3
3x16^2
7x16
4
= number_tot
and now
char buf[256]
sprintf(buf, "%s", number_tot);
is it correct?
Is there a better way?
tnx