> image = malloc(YSIZE*sizeof(int**));
> for (YSIZE=0; YSIZE<Ycount; YSIZE++)
Fine, just blow a hole in your other foot then.
It's the same problem rearranged - you're not allocating...
Type: Posts; User: Salem
> image = malloc(YSIZE*sizeof(int**));
> for (YSIZE=0; YSIZE<Ycount; YSIZE++)
Fine, just blow a hole in your other foot then.
It's the same problem rearranged - you're not allocating...
image = (int***)malloc(Ycount*sizeof(int**));
for (Ycount=0; Ycount<YSIZE; Ycount++)
{
image[Ycount] = (int**)malloc(Xcount*sizeof(int*));
for (Xcount=0; Xcount<XSIZE; Xcount++)
Since...