Answers for "why does the pointer value doesn;t change when I change it in funciton"

C++
0

why does the pointer value doesn;t change when I change it in funciton

int mystack_pop(int handle, void **obj)
{
    pStackMeta_t tmpStackList = gStackList;
    *obj = tmpStackList->stack->obj;
    tmpStackList->stack = tmpStackList->stack->next;
    tmpStackList->numelem -= 1;
    DBG_PRINTF("handle: %d, obj: %p\n", handle, *obj);
    return 0;
}
Posted by: Guest on May-02-2022

Code answers related to "why does the pointer value doesn;t change when I change it in funciton"

Browse Popular Code Answers by Language