Search:

Type: Posts; User: JonA

Search: Search took 0.00 seconds.

  1. Replies
    213
    Views
    164,737

    If you're periodically running into undefined...

    If you're periodically running into undefined behavior, valgrind might be able to identify cases you haven't noticed.

    Ruling out these cases might be helpful.
  2. Thread: A weird question

    by JonA
    Replies
    12
    Views
    7,398

    Sure. That's done by tracking your own...

    Sure. That's done by tracking your own allocations and then freeing each when you wish.

    There are all sorts of ways to do this. Most people just use the manual approach. Save pointers in a...
  3. Thread: A weird question

    by JonA
    Replies
    12
    Views
    7,398

    7.22.3.3 The free function "The free function...

    7.22.3.3 The free function

    "The free function causes the space pointed to by ptr to be deallocated ..."

    The entire allocated space based on a prior call to malloc / realloc / calloc and which...
  4. Thread: Pointer help

    by JonA
    Replies
    27
    Views
    11,778

    It's interesting (and rather common) for someone...

    It's interesting (and rather common) for someone to ask how to do X (help with pointers), but that question is a distraction from the real problem.

    In this case, you never needed that new pointer...
  5. Replies
    14
    Views
    2,229

    Try following the value of pfile. :)

    Try following the value of pfile. :)
  6. Replies
    15
    Views
    4,102

    Robustness

    1) Your programs will tend to be a bit more robust if you consistently check validity of passed parameters in the called function. If a function is passed a pointer, at least make sure the pointer...
Results 1 to 6 of 6