I\'ve got a structure defined inside header.h that looks like :
typedef struct { .... int icntl[40]; double cntl[15]; int *irn, *jcn;
I would have done this in python
ptr = int(st.icntl) import ctypes icntl = ctypes.c_int * 40 icntl = icntl.from_address(ptr) print icntl[0] icntl[0] = 1 for i in icntl: print i