Search:

Type: Posts; User: Salem

Search: Search took 0.51 seconds.

  1. Thread: Realloc problem

    by Salem
    Replies
    10
    Views
    860

    Anything you get from malloc/realloc remains with...

    Anything you get from malloc/realloc remains with you until you explicitly call free(), or your program exits.

    Whether you allocate in main and pass the pointer around, or allocate in a function...
  2. Thread: Realloc problem

    by Salem
    Replies
    10
    Views
    860

    Whist this is so, the result (either way) is...

    Whist this is so, the result (either way) is still valid to pass onto realloc.
Results 1 to 2 of 2