newarray[x1]=(char *)calloc(strlen(stradd)+1,sizeof(char)); strcpy(newarray[x1],dates[x]);
newarray=(char **)calloc(size+1,sizeof(char *)); ... while (x<=size+1){