Kako visedimenzionalno polje const char *text[8] prenjeti u funkciju ispis_na_lcd?
const char *text[8];
char shift_time;
void ispis_na_lcd(const char *[]);
main()
{
text[0]="time";
text[1]="setup";
text[2]=" ";
text[3]=" ";
text[4]=":";
text[5]=":";
text[7]=" ";
ispis_na_lcd(text);
}
void ispis_na_lcd(const char *s[])
{
for(shift_time=0; shift_time<8; shift_time++)
{
if(shift_time==0)
{lcd_goto_red1();}
if(shift_time==3)
while(*s[shift_time])
{
LCD_RS = 1;
PORTC = *s[shift_time]++;
LCD_STROBE;
DelayUs(40);
}
}
}