Hello:
I'm almost killing myself to figure out the problem with the attached code. It seems that passing a text array to a function is impossible. Anyone is so kind to help me, please.

you declared outputLegend as const array but trying to pass it to a function that expects non-const. Change the function to require const

void printTxtArray(const char *B[]);