You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need a way to create a structure in LPython, pass a pointer to C #1801
I guess we will have to define the structure in C code as well, correct? Like it will be present as ctypes.Structure in CPython and struct in C code so that both can inter-operate well.
Activity
certik commentedon May 16, 2023
I think this page shows how to do that: https://coderslegacy.com/structs-with-python-ctypes/
czgdp1807 commentedon May 16, 2023
So what you want to do is the following,
czgdp1807 commentedon May 16, 2023
I guess we will have to define the structure in C code as well, correct? Like it will be present as
ctypes.Structurein CPython andstructin C code so that both can inter-operate well.