malloc realloc and new

 realloc    原型:extern void *realloc(void *mem_address, unsigned int newsize);    用法:#include <stdlib.h> 有些編譯器須要#include <malloc.h>    功能:改變mem_address所指內存區域的大小爲newsize長度。    說明:若是從新分配成功則返回指向被分配內存的指針
相關文章
相關標籤/搜索