typedef struct _iobuf FILE;

From: Beefheart (testtest36_at_hotmail.com)
Date: 04/30/04


Date: Fri, 30 Apr 2004 15:44:18 +0100

I have some c code which I have acquired and would like to use,
unfortunately all the code (there is a lot of it) is expecting a passed
FILE* pointer.
The data I have is of the correct type but it is in memory. Is there a way
I can create a FILE structure and point it to the data in memory, or
generally convert my in memory data to a FILE structure?

I know that I could always save the data in memory to disk and then load it
again, to acquire the FILE structure but I would rather not.

many thanks



Relevant Pages

  • Re: typedef struct _iobuf FILE;
    ... Beefheart wrote: ... > The data I have is of the correct type but it is in memory. ... > generally convert my in memory data to a FILE structure? ... newsgroup dedicated to your particular hardware/OS/compiler. ...
    (comp.lang.c)
  • Re: typedef struct _iobuf FILE;
    ... > FILE* pointer. ... > The data I have is of the correct type but it is in memory. ... > generally convert my in memory data to a FILE structure? ...
    (comp.lang.c)
  • Re: typedef struct _iobuf FILE;
    ... > Beefheart wrote: ... >> The data I have is of the correct type but it is in memory. ... >> there a way I can create a FILE structure and point it to the ... > thirdparty ramdisk solution. ...
    (comp.lang.c)
  • Re: typedef struct _iobuf FILE;
    ... > The data I have is of the correct type but it is in memory. ... > generally convert my in memory data to a FILE structure? ... > I know that I could always save the data in memory to disk and then load it ... and can modify them to take a pointer to the data, ...
    (comp.lang.c)
  • Re: sho proc/mem
    ... We are experiencing some memory probelms and mgmt wants to know how ... So you are expecting memory problems, so where exactly are you expecting these? ... Your SHOW SYSTEM display does not necessarily give you the full story, and I don't think it's wise I embark on discussing the difference between global and local memory, and the system buffer regions and the process buffer regions, but suffice to say that it is not straight forward as a SHOW command. ...
    (comp.os.vms)