typedef char[2] outer_data_type; void bar_func(outer_data_type* outer){ typedef struct inner{ char X,Y } inner_data_type; inner_data_type* ptr = outer; ... }