[c] How can I convert an integer to a hexadecimal string in C?