To make a two dimensional array, I\'m currently using the following:
int * own; own = (int *)calloc(mem_size, sizeof(int)); for (i=0;i
Use:
int ** own; // int**, not int* own = calloc(mem_size, sizeof(int*)); //int*, not int // And remove the explicit cast.