Former I had a function f(double *a), which gets an array to work on. In order to get the correct position it should work on the array, it gets called as f(a+offset), with offset an integer. Now I reworked the code, and I defined a custom struct:
typedef struct{
double *a;
} struName;
and the function changed to f(struName *a). Now I was wondering how I still could get the offset to the function, without having to create a new temporary struct or having to change the function from f(struName *a) to f(struName *a, int offset). Is that even possible?
f(struName *a)? It should have still worked withf(variabelname.a + offset)