我希望你能帮我翻译一下关于IT技术的内容。以下是需要翻译的内容:
我正在尝试分配一个二维维数组的文件描述符... 所以我需要像这样的东西 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));
}
}
我现在该如何将所有内容都设置为零?每当我尝试赋值时,都会出现段错误。
谢谢