Managed to crack this little stupid nut though. If you have a void pointer (dynamic array) you can increase it as follows:
void* ptr; // Say of type char
(*(char*)ptr) += 100; // Or any integer
As a dev, one often have to solve technical issues. This blog serves as a knowledge base of the issues I encounter and the ways I solved them.
void* ptr; // Say of type char
(*(char*)ptr) += 100; // Or any integer
0 comments:
Post a Comment