Is there a C library that converts integers to hexadecimal or binary? -
is there library function takes in integer , converts single-byte hexadecimal or binary number?
for example, if passed input of 64
, output 0x40
.
for hex numbers, can use sprintf
:
char buff[80]; sprintf(buff, "0x%02x", 64);
Comments
Post a Comment