Your declaration is off. It declares pointer_to_array_of_atype to be an array of pointers to aType, not a pointer to an array. To get a pointer to an array, you wrap the asterisk and identifier in parens. But also keep in mind that the array sizes should match:
aType (*pointer_to_array_of_atype)[5];
pointer_to_array_of_atype = &array_of_atype;
You'd probably rather have a pointer to aType and then point it to the first element of the array. That way you don't have to worry about the special syntax of pointers to arrays, or the size restrictions:
aType *pointer_to_array_of_atype;
pointer_to_array_of_atype = array_of_atype;
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401