/*
* This is the part I am interested in
* knowing if it would be correct
*/
for (i = 0, i < row, i++) {
*array[i] = malloc(size); /* does **array have memory for *array[i]? */
if (*array == NULL) {
/* handle the error */
}
}

return 0;
}

I apologize that I did not explain well in my previous post.

04-18-2010

tabstop

malloc gives you the amount of memory asked for. You ask for enough memory to hold one of "* array" things. So you have enough room for one, not 5.