UKHeliBob:
A step in the right direction for you.Assuming that the process_data() function prints the whole of the data string correctly, try putting '\0' in data[3] and print it again. What do you get ?
process_data() function is not printing anything . what am I missing