fork(1) download
  1. #include <Python.h>
  2.  
  3. static PyObject *func(PyObject *self, PyObject *args)
  4. {
  5. double array[3];
  6. PyObject *py_list;
  7.  
  8. if (!PyArg_ParseTuple(args, "O", &py_list)){
  9. return NULL;
  10. }
  11.  
  12. int i;
  13. for (i=0; i<3; i++){
  14. array[i] = PyFloat_AsDouble(PySequence_GetItem(py_list,i));
  15. }
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:20: fatal error: Python.h: No such file or directory
compilation terminated.
stdout
Standard output is empty