double **a; .... if ((a == (double *)(malloc(sizeof(double *) * m))) == NULL) { エラーの場合の処理 }
for (i = 0; i < m; i++) a[i] = abody + i * n;