sorry to cause confusion. I didn't show the complete code. n is predefined. lines is void*.
yes, I want to make sure that I am interpreting the lvalue rvalue stuff correctly. The loop is...
Type: Posts; User: candy.chiu.ad
sorry to cause confusion. I didn't show the complete code. n is predefined. lines is void*.
yes, I want to make sure that I am interpreting the lvalue rvalue stuff correctly. The loop is...
Hi,
Compiler complained about the second line: error: lvalue required as increment operand
for (; n > 0; n--) {
target = *((int *)lines)++;
new_line(target);
}