[OT] RE: Expected behaviour of fgets on stdin after a EOF ?

2004-10-18 Thread Dave Korn
-Original Message- From: cygwin-owner On Behalf Of Dave Korn Sent: 18 October 2004 18:54 [ OT tagged, because this is all standard c programming / library / posix stuff and not cygspecific. If you want to discuss further, http://cygwin.com/acronyms#TITTTL! ] -Original

Re: [OT] RE: Expected behaviour of fgets on stdin after a EOF ?

2004-10-18 Thread Yitzchak Scott-Thoennes
On Mon, Oct 18, 2004 at 07:09:11PM +0100, Dave Korn wrote: For the serious answer, see the SUS definition of fgets... http://www.opengroup.org/onlinepubs/009695399/functions/fgets.html (although for preference you really want to refer to the C language spec, to which the SUS defers: