How to null terminate pointer passed as an argument

后端 未结 0 1912
逝去的感伤
逝去的感伤 2020-12-19 15:31

So i have this function that reads file, allocates memory, and puts file\'s content into buffer. I constantly get garbage data in the end though, so i need a way to null ter

相关标签:
回答
  • 消灭零回复
提交回复
热议问题