Garbage being printed when using strcpy

后端 未结 5 1625
一向
一向 2020-12-12 02:53

I have a function that will parse some data coming in. My problem is that after using strncpy I get some garbage when I try to print it. I try using malloc to make the char

5条回答
提交回复
热议问题