C program to do malloc and free on list of variable strings with char**

前端 未结 0 493
没有蜡笔的小新
没有蜡笔的小新 2020-12-25 12:49

To allocate and free a single string in C, I do the following:

char[10] stringToCopy = "CopyString";
int length = strlen(stringToCopy) + 1;
char* Co         


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