Re: callling python function in c

2011-10-18 Thread Anssi Saari
masood shaik masood@gmail.com writes: Hi I am trying to call python function from c code.The following program i got from the web source while i am trying to run this program it throws an segmentation fault. Yes, the call to PyImport_Import fails and returns a NULL. You could use the

Re: callling python function in c

2011-10-17 Thread Ulrich Eckhardt
Am 16.10.2011 10:03, schrieb masood shaik: I am trying to call python function from c code.The following program i got from the web source while i am trying to run this program it throws an segmentation fault. Try checking what functions returns instead of blindly using it. Use a debugger to