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
See if this would work for you:
f(struct_type *data); void test(unsigned n) { struct_type *v = malloc(n * sizeof(struct_type *)); f(v); }
Please let me know how you get on.