M
mdh
May I ask why this works:
given:
char s[];
char *posbfr = s;
char *endbfr = s + MAXOP;
void(...){
if (posbfr >= endbfr)
printf("......");
else
*posbfr++ = c ;
}
but this is invalid?
(posbfr >= endbfr) ? printf("......") : *posbfr++ = c ;
(with an "invalid lvalue in assignment") error?
or...is this the dumbest question yet?
Thank you.
given:
char s[];
char *posbfr = s;
char *endbfr = s + MAXOP;
void(...){
if (posbfr >= endbfr)
printf("......");
else
*posbfr++ = c ;
}
but this is invalid?
(posbfr >= endbfr) ? printf("......") : *posbfr++ = c ;
(with an "invalid lvalue in assignment") error?
or...is this the dumbest question yet?
Thank you.