I've got void pointer which I want to do pointer arithmetic on it. to do so, I want to cast it to a char pointer.
( char * ) buf += current_size;
However when I do so, I get the following error:
error: lvalue required as left operand of assignment
I tried also adding parenthesis on the the whole left side, with no success. Why do I get this ?