2

Is there a way to grow an array in C, but only if the memory can be grown in place (That is, fail to grow if the pointer needs to be changed)?

Exodist
  • 629
  • 5
  • 15
  • There is no standard way, though OS-specific functions to do/emulate something like that might exist or you could use memory pool and implement it yourself. – user2802841 Feb 07 '14 at 15:08

1 Answers1

1

In standard C there is no function capable of doing that.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490