Hi,
Compiler complained about the second line: error: lvalue required as increment operand
I changed it to:Code:for (; n > 0; n--) {
target = *((int *)lines)++;
new_line(target);
}
Am I interpreting the sequence of operations of "target = *((int *)lines)++;" correctly?Code:int *temp = (int*) lines;
for (; n > 0; n--) {
target = *temp;
temp = temp+1;
new_line(target);
}
Thanks a lot for your help!