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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -