char *new_line = malloc(line_len + extra_space + 1);viod类型不能用于初始化char*类型
时间: 2024-06-06 21:11:08 浏览: 121
Corrected sentence:
"Void type cannot be used for initializing a char* type. Therefore, the correct syntax for allocating memory for a new line would be char *new_line = malloc(line_len + extra_space + 1);"
阅读全文