这个不是固定的长度,刚开始会初始化一个长度,但是当行超出这个长度的时候,getline会重新给这个buffer长度进行开辟,来适应变长的行。请参看考我给出来链接中的英文说明部分。“
If *lineptr is NULL, the getline() routine will allocate a buffer for containing the line, which must be freed by the user program. Alternatively, before calling getline(), *lineptr can contain a pointer to a malloc()-allocated buff