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

2004-10-18 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Laurent Lagosanto > Sent: 18 October 2004 18:48 > Am I doing something wrong with fgets ? What part of "END of file" don't you get? cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info:

[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 Mess

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: