what kind of language is it, it does not look like the regular C

would you know how to put the data into array instead of sending to USB port.

That code already puts the data in an array. If you don't want to send it to the serial port, don't.