From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,dcb81b5322bf4a6d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Jerry van Dijk Newsgroups: comp.lang.ada Subject: Re: Binding to feof Date: 27 Aug 2004 23:07:36 +0200 Organization: Posted via Supernews, http://www.supernews.com Message-ID: Sender: jerry@JVDSYS References: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@supernews.com Xref: g2news1.google.com comp.lang.ada:3100 Date: 2004-08-27T23:07:36+02:00 List-Id: Jeffrey Carter 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