CodePudding user response:
The building Lord this problem I also met, mainly you field char [10] do not agree with you the length of the assignment, open the tf can see the back of each character is much more a char length/0, so you should be you to input the content of plus one, now I was handed over to structure but get not b '\ x01 \ x00 \ x00 \ x00 \ x02 \ x00 \ x00 \ x00asds \ x02 \ x00 \ x00 \ x00', this format, the building Lord you solve?