The following code warns about incompatible type. What is the proper way to solve this code?
thanks
typedef struct a_struct struct_type; void f(cons
f expects to get as input an array of pointers (const struct_type* []). You pass a pointer to a pointer of struct (const struct_type**).
The best thing to do, IMO, is to change the signature of f to:
void f(const struct_type *const* data);
Why do you need to pass arrays as arguments to functions?