Subject: Re: Slightly modifying fgetln(3) semantics
To: None <lukem@NetBSD.ORG>
From: J.T. Conklin <jtc@NetBSD.ORG>
List: tech-userlevel
Date: 09/18/1997 09:21:28
> Greetings.
> fgetln(3) reads a line from stdin (upto newline or EOF), and returns a
> pointer to this string, along with its length.  The string is not NUL
> terminated.

The history of fgetln / fgetline includes at least two libc shared
library major number bumps.  I don't recall, but I wouldn't be
surprised if one of the past versions NUL terminated the string.