Why is there a segmentation fault in strcpy after initializing a struct?

后端 未结 0 541
误落风尘
误落风尘 2020-11-29 00:12

I can\'t seem to figure out why strcpy makes a segmentation fault in this code. It should be straightforward

typedef struct message {
    char *buffer;
    in         


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