Binding to feof

From: Jeffrey Carter (spam_at_spam.com)
Date: 08/27/04


Date: Fri, 27 Aug 2004 18:14:04 GMT

I've been experimenting with a binding to C's lightweight I/O library
(fopen, fclose, feof, fgetc, fgets, fputc, fputs). Everything seems to
work fine except feof, which always returns zero (False).

I'm using GNAT 3.15p/Win98.

Has anyone else experienced this? Does anyone have an explanation? If
it's a C library error, is it fixed in later versions?

Thanks for any assistance.

-- 
Jeff Carter
"Have you gone berserk? Can't you see that that man is a ni?"
Blazing Saddles
38


Relevant Pages

  • Re: Making "flush" an option instead of a command?
    ... leading "f") pretty closely, and fopen, fseek, ftell, fgets, fputs, ... fflush, fclose, feof are mostly the set of operations there... ...
    (comp.lang.tcl)
  • Re: Binding to feof
    ... > (fopen, fclose, feof, fgetc, fgets, fputc, fputs). ... > work fine except feof, ... Ada's End_Of_File function returns true if the *next* attempted input ... will fail by reaching the end of the file. ...
    (comp.lang.ada)