> *ip++ //almost certainly should be "(*ip)++" These are not equivalent, (*ip)++ will increment whatever ip points to.