char *new_line = malloc(line_len + extra_space + 1);viod类型不能用于初始化char*类型
时间: 2024-06-06 16:11:08 浏览: 114
mem.rar_Free!_malloc_malloc和free_mem_free_mem_malloc
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);"
阅读全文