Hey everyone thanks for the response. Situation resolved by using address of
regiongen(&wm->wregions[y][x], wm->height, wm->width, wm->data[y][x]);
Now, im writing all of my regions to file, the file gets to about 2.7 megabytes and the program crashes(in the middle of writing a region).... some kinda overflow? what is it? Ive tried fputc, and fputs... hmmm.
|