help About fifo and thread

hi, my problem is

i have 10 thread for produces double two dimensional array these will produces 2d array 400 times ,then i have a thread to takes a two dimensional array then it inverse , and most 10 array can be in the fifo , and threads given takes one by one, now my problem is , i cant send 2d array to fifo, then i cant read array with fifo , i just send(write) char* to fifo then i read char :frowning: , how can i send double dimensional array to fifo or another alternative.. thanks