阅读背景:

C -释放数组中的指针

来源:互联网 

I've been trying to have all my pointers that I use malloc to initialize to be inside an array of pointers (or a pointer of pointers, perhaps), so that I can then just go through that array and free each pointer with something like free(ptr_array[i]); and not have to free each one individually.I've been trying to have all my pointers that I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: