つman fgets
> gets() and fgets() return s on success, and NULL on error or when end of file occurs while no characters have been read.
標準ライブラリの関数はとりあえずmanを嫁。

linebufferのアドレスを先頭アドレスとしたBUFFERSIZE分の長さの配列があると仮定して書き込む。
んで、returnで成功したかどうか判別している。