/**
* 三个函数的使用均需要包含头文件 stdlib.h
*/
#include <stdlib.h>
/**
* description - 以字节为单位分配连续的内存空间
*
* @size 分配的内存大小
*
* return - 分配成功返回指向内存的指针,否则返回NULL
*/
void* malloc(size_t size);
/**
* description - 以字节为单位分配连续的内存空间,并初始化内存空间为0
*
* @nelem 元素个数
* @elsize 每个元素大小
*
* return - 分配成功返回指向内存的指针,否则返回NULL
*/
void* calloc(size_t nelem, size_t elsize);
/**
* desciption - 改变ptr指针指向的内存大小到指定的size大小,
* 如果在ptr已经分配的内存后有足够的空间用于增长则在其后追加,ptr保持不变,
* 否则释放ptr已经分配的内存,并重新分配至size大小,ptr指针改变,
* 如果减少ptr指针指向的内存大小,则ptr指针不变
*
* @ptr 需要重新分配大小的指针
* @size 重新分配后的内存空间大小
*
* return - 分配成功返回指向内存空间指针,否则返回NULL
*/
void* realloc(void* ptr, size_t size);