Calling from C# to C function which accept a struct array allocated by caller
- by lifey
I have the following C struct
struct XYZ
{
void *a;
char fn[MAX_FN];
unsigned long l;
unsigned long o;
};
And I want to call the following function from C#:
extern "C" int func(int handle, int *numEntries, XYZ *xyzTbl);
Where xyzTbl is an array of XYZ of size numEntires which is allocated by the…