I have a simple C function.
typedef struct { long unsigned int First; long unsigned int Second; int c; } FRAGMENTS; struct out { long unsigned int Four; FRAGMENTS fragments[10000]; }; struct out test() { struct out *out = (struct out *)malloc(sizeof(struct out)); ... return *out }
How to use this function in Python ? Any example for transform this structure to python object ( using python wrapper ) ?
int
from the C function? The right return type here is anout*
. – Chinmay Kanchi