Convert an int to it's chars w/o using String object?

Using Arduino IDE and ESP32 Dev Kit C.
I'm sure there is an established way to put a multi-digit int into a char array w/o using a String object. Would someone enlighten me please. :slight_smile:

sprintf()

1 Like

itoa() or ltoa()

1 Like

that was easy

What is the true reason behind the need to copy data from one representation to another?
Smells like a XY problem.

1 Like

converting a binary value to an ASCII string seems pretty fundamental. Probably one of the first functions written in computing history

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.