Search:

Type: Posts; User: UniMord

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,009

    What do you mean by that? In my code, realloc()...

    What do you mean by that? In my code, realloc() ordered 10 NODEs instead of 1.

    Once I have you here: When I wish to return a string from a function, does it have to be a static variable? In...
  2. Replies
    4
    Views
    2,009

    Thanks Deckard. I find that if I used realloc...

    Thanks Deckard.

    I find that if I used realloc on ptr1, ptr2 gets left behind pointing to the original block. Normally, realloc frees before abandoning, so do I correctly assume that ptr2 is now...
  3. Replies
    4
    Views
    2,009

    Test pointer if successfully freed.

    Once I've freed allocated memory, is there any way of testing the block? free() has no return and I need to be able to ensure the memory has in fact been freed.

    Also, if I do this:

    NODE *ptr1,...
Results 1 to 3 of 3