Example #1
0
/* int in_mandel(double, double, int) */
static PyObject* py_in_mandel(PyObject* self, PyObject* args)
{
	double x0, y0;
	int n;
	int result;

	if (!PyArg_ParseTuple(args, "ddi", &x0, &y0, &n)) {
		return NULL;
	}
	result = in_mandel(x0, y0, n);
	return Py_BuildValue("i", result);
}
Example #2
0
int main(void)
{
        printf("%d\n", in_mandel(1., 2., 3));
        return 0;
}