How to call C functions from python?

I have a scenario where a GUI (Developed in VB) sends commands to a target system application developed in C (Xilinx).

A user on a PC sends targeting commands using a graphical interface.

But now I need to remove the GUI and send commands (calls to C functions in the target system application) using Python.

I found some useful information from ctypes, but I don’t know the exact procedure, so I often drop it.

Question:

Can someone tell me the exact procedure for developing a python script for this. I know quite a few python scripts.

+3
source share
1 answer

SWIG, C Python. example.

+1

Source: https://habr.com/ru/post/1753832/


All Articles