Skip to main content
1 of 3
Uthman
  • 9.9k
  • 19
  • 80
  • 109

Format specifiers for uint8_t, uinit16_t...?

If I have an integer variable I can use sscanf as shown below by using the format specifier %d.

sscanf (line, "Value of integer: %d\n", &my_integer);

Where can I find format specifiers for uint8_t, uint16_t, uint32_t and uint64_t?

uint64_t has probably %lu.

Uthman
  • 9.9k
  • 19
  • 80
  • 109