Use snprintf instead of u32_to_str

This commit is contained in:
pscott
2021-04-28 10:48:18 +02:00
parent d5b32af95e
commit ebffb48cd3
3 changed files with 7 additions and 43 deletions

View File

@@ -28,9 +28,6 @@ void convertUint256BE(uint8_t* data, uint32_t length, uint256_t* target);
int local_strchr(char* string, char ch);
// `itoa` for uint32_t.
void u32_to_str(char* dest, uint8_t dest_size, uint32_t in);
// Converts a list of bytes (in BE) of length `size` to a uint32_t. `strict` will make the function
// throw if the size is > 4.
uint32_t u32_from_BE(uint8_t* in, uint8_t size, bool strict);