May 5, 2015 at 9:32pm
* has a lower priority than ++
*add++
is the same as
*(add++)
So your 'imfunction' is effectively doing nothing, as it is incrementing the pointer, dereferencing it, and then throwing the value away.
You would want this:
(*add)++