-1) { counter += 1; } free(buffer); fclose(input_fd); return 0; } 第二种情况同一个循环调用一个函数,该函数又调用 getline() ,传递相同的缓冲区。
確定! 回上一頁