This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

moving returned character to string

always getting an syntax error 213: leftside of asn-op not an lvalue

void scherm (void)
{
char s [10];
char i,y;
printf("volgende string stond weggeschreven: ");
for (i=0;i < 10;i++)
{
DPTR = i;
sel = 0;
ACC = 0x03;
shiftout (ACC);
ACC = DPH;
shiftout (ACC);
ACC = DPL;
shiftout (ACC);
y = shiftin ();
s [i] = y;//error line
sel = 1;
printf("%s",s);
}
}

0