www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/18/07:18:58

Date: 17 Jan 1994 11:43:57 -0500 (EST)
From: pek AT logos DOT res DOT utc DOT com (Paul Kirschner)
Subject: dj111m2 and fscanf
To: djgpp AT sun DOT soe DOT clarkson DOT EDU

I just installed the maint-2 stuff.  A reported problem with fscanf
was not fixed.  fscanf should return EOF (=-1) on an end of file
condition.  (as per Kernighan & Ritchie, second edition, pg 245)
Instead it returns 0 items read (as per the info documentation).

This behaviour breaks f2c (among other things).

BTW - the linux gcc libraries work fine.

Is the fscanf behaviour acknowledged to be an error?  When will it
be fixed?

------------------------------------------------------------------------------
Paul Kirschner                                       #include <disclaimer.std>
pek AT logos DOT res DOT utc DOT com
United Technologies Research Center

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019