Segmentation fault while performing strncpy to pointer to an array of strings C

前端 未结 0 1726
太阳男子
太阳男子 2020-12-13 10:04

I am trying to copy substring of s to pointer to an array of strings. And below is my code. I have allocated the memory using malloc. But when I try to perform strncpy, I ge

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