fgetln.3: Add the CAVEATS section with an example

Operating Systems / DragonFlyBSD - Aaron LI [aaronly.me] - 16 January 2019 10:14 EST

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(-)

Upstream: gitweb.dragonflybsd.org


  • Share