unsignedInt

An unsignedInt is an unsigned 32-bit integer.

The lexical form is the same as unsignedLong, but values range from 0 to 4294967295 inclusive.

EXESS_MAX_UINT_LENGTH

10U

The maximum length of a canonical unsignedInt string.

ExessResult exess_read_uint(const char *str, uint32_t *out)

Read an unsignedInt string after any leading whitespace.

Parameters:
  • str – String to read.

  • out – Parsed value, or zero on error.

Returns:

The count of characters read, and a status.

ExessResult exess_write_uint(uint32_t value, size_t buf_size, char *buf)

Write a canonical unsignedInt string.

Parameters:
  • value – Value to write.

  • buf_size – Size of buf in bytes.

  • buf – Output buffer, or null to only measure.

Returns:

The count of characters in the output, and a status (ExessStatus.EXESS_SUCCESS, or ExessStatus.EXESS_NO_SPACE if the buffer is too small).