From: Jerry van Dijk <jerry@jvdsys.demon.nl>
Subject: Re: Binding to feof
Date: 27 Aug 2004 23:07:36 +0200
Date: 2004-08-27T23:07:36+02:00 [thread overview]
Message-ID: <uhdqocmsn.fsf@jvdsys.demon.nl> (raw)
In-Reply-To: MRKXc.206$8d1.71@newsread2.news.pas.earthlink.net
Jeffrey Carter <spam@spam.com> writes:
> 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).
If the binding is correct, it should work. Could you show an example of the
code and how you use it ?
I am not sure why you would want to do this though. If you want to
use/interface to the C stream API, GNAT already provides a binding. If you
are looking for the most efficient code, you need to use the Win32 file API,
as the C API, on Windows, is itself also a binding to the Win32 API.
--
-- Jerry van Dijk
-- Leiden, Holland
next prev parent reply other threads:[~2004-08-27 21:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-27 18:14 Binding to feof Jeffrey Carter
2004-08-27 21:07 ` Jerry van Dijk [this message]
2004-08-28 1:48 ` Jeffrey Carter
2004-08-28 2:25 ` Steve
2004-08-28 18:51 ` Jeffrey Carter
2004-08-28 10:26 ` Eric Jacoboni
2004-08-29 0:15 ` Keith Thompson
2004-08-30 6:56 ` Jeffrey Carter
2004-08-30 17:16 ` Hyman Rosen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox