Code:
float *y, *ys;
int j;
if ((ys = (float *)calloc(points*points,sizeof(float))) == NULL)
printf("ys\n");
if ((ys1 = (float *)calloc(points,sizeof(float))) == NULL)
printf("ys1\n");
...
memcpy[ys[i*points],ys1,j*sizeof(float)]; // line 220
2dspline.c:220: error: subscripted value is neither array nor pointer
At least I remembered (evidentually) to declare and calloc ys as a *float not **float.