//相关函数申明void*realloc(void*mem_address,unsignedintnewsize);void*calloc(unsignedintnum,unsignedintsize);void*malloc(size_tsize);void*alloca(size_t);
//使用方法举例#includestdlib.hchar*p=(char*)calloc(1,10);//会自动初始化strcpy(p,"Hello");p=(char*)realloc(p,20);//扩充内存strcat(p,"World");printf("%s",p);free(p);
C语言编码助手又更新了,增加了代码实验室的功能
C语言编码助手下载地址v1.33win10x64版本下载ctestcode.cn/ctestcode_win10.ziplinuxx64版本下载ctestcode.cn/ctestcode_linux_x64.zip预览时标签不可点收录于话题#个上一篇下一篇