我试图分配文件描述符2D维数组...所以我需要像这样 FD [0] [0] FD [0] [1]Ç分配两个多维数组
到目前为止,我已经编码:
void allocateMemory(int row, int col, int ***myPipes){
int i = 0,i2 = 0;
myPipes = (int**)malloc(row * sizeof(int*));
for(i = 0; i < row;i++){
myPipes[i] = (int*)malloc(col * sizeof(int));
}
}
如何设置这一切太零,现在我不断收到一个赛格故障时,我尝试分配一个值...
感谢
完美谢谢! – Jacob 2010-04-07 00:10:26
不幸的是,链接已经死亡。 – jupp0r 2013-08-22 10:29:35