jixingzhong(瞌睡虫:选择了远方,只顾风雨兼程!)的这句话,我翻译不来。
If size is 0, either a null pointer or a unique pointer that can be successfully passed to free() shall be returned.
malloc
Upon successful completion with size not equal to 0, malloc() shall return a pointer to the allocated space. If size is 0, either a null pointer or a unique pointer that can be successfully passed to free() shall be returned.