If you want to modify a pointer to pointer you need to pass a pointer to pointer to pointer.

I am lost.

you are viewing a single comment's thread
view the rest of the comments
[–] 20 points 8 months ago (1 child)

In C, if you want to let a function change a variable (let's call it x), you need to pass it a pointer to x.

If x is a pointer to a pointer (**), in order to let a function edit x, you need to pass it to a pointer to x (in that case, a pointer to a pointer to a pointer ***).

  • source
  • hideshow 1 child comment