I'm having trouble getting an int to cast to char in a way that the char will display the actual value of the int.
Say I have an int with a value of 5001, and I have a function that only takes char array[] variables. How do I get the actual value of 5001 into a char string?
The function only takes char strings, so using string is out.
Is there a function that already does this or would I have to make one from scratch?
The only solution I could think of on short notice was to output the number to a file then read from that file into a char[]. Now I can toss out that function, Thank you to TheGrayWolf.