From owner-cvs-lib Mon Mar 25 05:40:20 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA24305 for cvs-lib-outgoing; Mon, 25 Mar 1996 05:40:20 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id FAA24296 Mon, 25 Mar 1996 05:40:16 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id AAA16035; Tue, 26 Mar 1996 00:38:47 +1100 Date: Tue, 26 Mar 1996 00:38:47 +1100 From: Bruce Evans Message-Id: <199603251338.AAA16035@godzilla.zeta.org.au> To: CVS-committers@freefall.freebsd.org, ache@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-lib@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/stdio fgets.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Modified: lib/libc/stdio fgets.c > Log: > Since n is int now, sanity check must be n <= 0, not simple n == 0 I was going to change this too. NetBSD also has n <= 0. Plauger's C library book has n <= 1. The C standard doesn't seem to define the (stupid) case when no input is read due to lack of space in the buffer. I also have some fixes for our man page. It said wrong and incomplete things about what happens to the buffer when EOF is returned. Bruce