segmentation fault on trying to allocate memory for a passed argument

前端 未结 0 813
死守一世寂寞
死守一世寂寞 2021-01-29 17:00

I am trying to make a python-like list in c and I tried the below code I identified the line at which the error occurs *list[i] = (char*) malloc(strlen(buffer) + 1);

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