c_python_example.c
// function that will be called from Python code
// wraps around the pure C fib function
function that will be called from Python code
wraps around the pure C fib function
function that will be called from Python code wraps around the pure C fib function
PyObject* c_fib(PyObject* self, PyObject* args)
{
  int n;
  PyArg_ParseTuple(args, "i", &n);
  n = fib(n);
  return PyLong_FromLong(n);
}
PyObject * c_fib ( PyObject * self , PyObject * args ) { int n ; PyArg_ParseTuple ( args , " " , & n ) ; n = fib ( n ) ; return PyLong_FromLong ( n ) ; }
function that will be called from Python code
wraps around the pure C fib function
function that will be called from Python code wraps around the pure C fib function