Skip to main content
edited tags
Link
Sebastian Mach
  • 39.3k
  • 8
  • 97
  • 131
Corrected typo in title and some layout related stuff.
Source Link
Christian.K
  • 49.6k
  • 10
  • 108
  • 156

Format specifiers for uint8_t, uinit16_tuint16_t, ...?

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

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

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

Where can I find format specifiers for uint8_tuint8_t, uint16_tuint16_t, uint32_tuint32_t and uint64_tuint64_t?

uint64_t has probably %lu.

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.

Format specifiers for uint8_t, uint16_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.

Source Link
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.