before calling getline() , *lineptr can contain a pointer to a malloc() ... pass the same *lineptr , you should be OK if you free() only once in the end.
確定! 回上一頁