Function stdio_itoax

Function Documentation

char *stdio_itoax(uint32_t i, char *s, bool_t add_0x)

Convert an integer into a hexadecimal string.

Convert an integer into a hexadecimal string representing the value of the original integer. If i is negative, it will be treated as size_t. Only supports 32-bit integers.

Parameters:
  • i – The number to convert.

  • s – The string to fill.

  • add_0x – Should “0x” be added to the front of the string?

Returns:

The converted string.