I have another question:
Given the function declaration of the number to string conversion being:
Code:
const char* getDayOfWeekName(int inDayIndex);
and the LCD string output function being:
Code:
void LCD4_OUT(char* outstr);
I'm pretty bad at signatures. I'm not sure how to put the LCD4_OUT function call using the return value of the getDayOfTheWeek function properly. I have tried:
Code:
LCD4_OUT(getDayOfWeekName((int) access_day_number()));
also
Code:
char* dow;
dow = &(getDayOfWeekName((int) access_day_number()));
LCD4_OUT(dow);
I got an error of operands not operable on the function call with the ampersand or illegal pointer conversion. Any help would be much appreciated.