Search:

Type: Posts; User: Salem

Search: Search took 0.51 seconds.

  1. Replies
    7
    Views
    8,063

    > image = malloc(YSIZE*sizeof(int**));...

    > 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...
  2. Replies
    7
    Views
    8,063

    image = (int***)malloc(Ycount*sizeof(int**));...

    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...
Results 1 to 2 of 2