Add the CAVEATS section to warn about the behavior of fgetln(). An example is included to demonstrate how to properly use it.
Obtained-from: NetBSD, with the ferror() check from OpenBSD
1f119bc603 fgetln.3: Add the CAVEATS section with an example
lib/libc/stdio/fgetln.3 | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)