Thanks so much for taking the time to read this. I'll be brief with my issue.
I am also an EE major so I am not very smooth with C code.
Problem: Converting an integer value into a character string. I need to use integers to calculate a temperature conversion, and make it into a char* to send to an LCD function.
Constraints: Cannot use standard library. Cannot use floats.
// function only accepts char* as pass-inCode:int cel=1000; //100.0 degrees int fah = (((9*cel)/5)+320); //using 320 due to x10 of temperature print_to_LCD((char*) fah);
This clearly doesn't work because it is trying to convert the fah value of 2120 to an ACSII character. I want it to somehow generate the string "2120".
Thanks in advance,