int myqtt_support_itoa ( unsigned int  value,
char *  buffer,
int  buffer_size 
)

Allows to convert the provided integer value into its string representation leaving the result on the provided buffer.

Parameters
valueThe value to convert.
bufferPointer to the buffer that will hold the result.
buffer_sizeThe size of the buffer that will hold the result.

Note the function does not place a NUL char at the end of the number written.

Returns
The function returns bytes written into the buffer or -1 if the buffer can't hold the content.