Let's say we have a function func that that takes a void ** argument and changes what *arg points to.
I have to cast the argument to void ** so the compiler doesn't complain, which I'm guessing is a sign that I'm doing something that I shouldn't be doing.Code:void func(void **arg);
Code:int *ptr; func((void **)&ptr);



LinkBack URL
About LinkBacks



