#include #include #include int escapes(double cr, double ci, int it) { double zr = 0; double zi = 0; double zrtmp; int i; for(i=0; i 4) { return 1; } } return 0; } void mandel(double xmin, double xmax, int xstep, double ymin, double ymax, int ystep, int iters) { int yc; // array of string to store result char *m = (char *) malloc(ystep * (xstep + 1) * sizeof(char)); #pragma omp parallel for for(yc=0; yc