+ 8

Call functions from other languages

Suppose I have written a function in C that outputs hello world and other stuff. Now the problem is, I want to import the c file into my python code and call the function within it. How can I do the task?

20th Oct 2018, 1:50 AM
0x6176696c61
0x6176696c61 - avatar
2 Answers
+ 4
Kirk Schafer I noticed from your codes that you used ctypes alot. Can I use that for doing this task?
20th Oct 2018, 1:50 AM
0x6176696c61
0x6176696c61 - avatar
+ 4
https://docs.python.org/3/extending/extending.html
20th Oct 2018, 7:18 AM
Mert Yazıcı
Mert Yazıcı - avatar