DragonFlyBSD/src 45e55a3lib/libc/stdio getline.3

getline.3: Note to distinguish between error and EoF

Note that the getline() and getdelim() functions do not distinguish
between end-of-file and error, so the callers must use feof() or
ferror() to determine which occurred.

Update the example to check the error.

Obtained-from: OpenBSD
DeltaFile
+13-1lib/libc/stdio/getline.3
+13-11 files

UnifiedSplitRaw