Re: Binding to feof

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


Date: Sat, 28 Aug 2004 18:51:33 GMT

Steve wrote:

> I just did a quick check on the "C" definition of feof:
>
> int feof(FILE *stream)
>
> It seems that the function requires a pointer to a stream.
> Is your "FILE" type defined as a pointer?

Yes. File_Handle is an access type, with pragma Convention C. It's what
I pass to all the other functions, which also take FILE* parameters, and
they work fine.

-- 
Jeff Carter
"My brain hurts!"
Monty Python's Flying Circus
21


Relevant Pages

  • Re: pragma convention
    ... So what's the point of the current existence of pragma Convention? ... really means the convention used by some specific X compiler chosen by the Ada compiler developers for those cases where the X language does not rigorously specify the characteristic in question. ... For an access type, you insure that it is just a pointer, and doesn't contain any additional data. ...
    (comp.lang.ada)
  • C bindings, Interfaces.C.Pointers etc.
    ... this access type does not correspond to C pointer" ... How do I free the allocaed array from the C pointer? ... As I understand it, if the array is unconstrained, an access type ... pragma Convention; ...
    (comp.lang.ada)
  • Re: Passing Stream object by reference
    ... I then want to pass that stream to another function to perform ... > My GetMP3Data function accepts a pointer to a stream as its arguement. ... I wonder where the reference is that you have been talking about at the ...
    (comp.lang.cpp)
  • Re: open/fopen read/fread in multithreaded environment.
    ... variable,<dynamic memory are referred by differnt pointer of each ... The file pointers are local to the open stream. ... of pthread_mutex_lock indicates that it's at least a POSIX wannabe. ... if Multiple Threads trying to Read on Same File Descriptor <or Same ...
    (comp.programming.threads)
  • Re: fopen modes
    ... "The fopen function returns a pointer to the object controlling the stream." ... Kibblezy deen voo nizee! ...
    (comp.lang.c)